aboutsummaryrefslogtreecommitdiff
path: root/gui/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/options.cpp')
-rw-r--r--gui/options.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index ec2f65e713..b9516b32ff 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -435,6 +435,12 @@ int OptionsDialog::addVolumeControls(GuiObject *boss, int yoffset) {
GlobalOptionsDialog::GlobalOptionsDialog()
: OptionsDialog(Common::ConfigManager::kApplicationDomain, 10, 20, 320 - 2 * 10, 200 - 1 * 20) {
+ const int screenW = g_system->getOverlayWidth();
+ const int screenH = g_system->getOverlayHeight();
+
+ _w = screenW - 2 * 10;
+ _h = screenH - 1 * 20;
+
const int vBorder = 4;
int yoffset;