diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-27 15:18:52 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-27 15:18:52 +0100 |
commit | b7f2cec55f9a90032fc225fed0c1427faeadc879 (patch) | |
tree | bcb192542a0bb8ce4a3b76600c1e2a671c6af382 /qtmips_gui/memoryview.cpp | |
parent | 063da67766585bd1db5e8afd83e2f9eda88119c0 (diff) | |
download | qtmips-b7f2cec55f9a90032fc225fed0c1427faeadc879.tar.gz qtmips-b7f2cec55f9a90032fc225fed0c1427faeadc879.tar.bz2 qtmips-b7f2cec55f9a90032fc225fed0c1427faeadc879.zip |
Various graphics tweaks
Diffstat (limited to 'qtmips_gui/memoryview.cpp')
-rw-r--r-- | qtmips_gui/memoryview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_gui/memoryview.cpp b/qtmips_gui/memoryview.cpp index 48882db..31c8827 100644 --- a/qtmips_gui/memoryview.cpp +++ b/qtmips_gui/memoryview.cpp @@ -155,7 +155,7 @@ void MemoryView::Frame::check_update() { int hpart = qMax(height()/10, MIN_OFF); int req_height = height() + 2*hpart; - while (!((content_y <= -hpart) && (content_y >= -2*hpart)) || (widg->height() < req_height)) { + while (!((content_y <= -hpart) && (content_y >= -2*hpart)) || (widg->height() <= req_height)) { int row_h = widg->row_size(); // Calculate how many we need and how much we need to move and update content accordingly int count = (req_height / row_h) + 1; |