aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2012-06-29 14:57:54 +0200
committerJohannes Schickel2012-06-29 14:57:54 +0200
commit0b5b58829cbb76a2da1c4de19dd51e30fc2c5a3d (patch)
tree5af6f631b69d3e4b2f77801c288bf290aae1968c
parentd7db655c5b832691fbaa0d0d175de38f43217dc2 (diff)
downloadscummvm-rg350-0b5b58829cbb76a2da1c4de19dd51e30fc2c5a3d.tar.gz
scummvm-rg350-0b5b58829cbb76a2da1c4de19dd51e30fc2c5a3d.tar.bz2
scummvm-rg350-0b5b58829cbb76a2da1c4de19dd51e30fc2c5a3d.zip
GUI: Don't distribute vertical space between buttons in the thumbnail load chooser.
-rw-r--r--gui/saveload-dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp
index 5d9d489fec..8537937c0f 100644
--- a/gui/saveload-dialog.cpp
+++ b/gui/saveload-dialog.cpp
@@ -489,11 +489,11 @@ void LoadChooserThumbnailed::reflowLayout() {
}
const uint addX = _columns > 1 ? (availableWidth % slotAreaWidth) / (_columns - 1) : 0;
- const uint addY = _lines > 1 ? (availableHeight % slotAreaHeight) / (_lines - 1) : 0;
+ //const uint addY = _lines > 1 ? (availableHeight % slotAreaHeight) / (_lines - 1) : 0;
_buttons.reserve(_lines * _columns);
y += defaultSpacingVertical / 2;
- for (uint curLine = 0; curLine < _lines; ++curLine, y += slotAreaHeight + addY) {
+ for (uint curLine = 0; curLine < _lines; ++curLine, y += slotAreaHeight/* + addY*/) {
for (uint curColumn = 0, curX = x + defaultSpacingHorizontal / 2; curColumn < _columns; ++curColumn, curX += slotAreaWidth + addX) {
ContainerWidget *container = new ContainerWidget(this, curX, y, containerWidth, containerHeight);
container->setVisible(false);