diff options
author | Nicolas Bacca | 2003-04-21 10:09:41 +0000 |
---|---|---|
committer | Nicolas Bacca | 2003-04-21 10:09:41 +0000 |
commit | 39aa43dc8393283cda534fa1dfd5d7a68eecefde (patch) | |
tree | e51273b0db0909f87ac9c88ae4e5a6852e011f9c /scumm | |
parent | 256d4c0e3a6369273e91386d537cecb168105934 (diff) | |
download | scummvm-rg350-39aa43dc8393283cda534fa1dfd5d7a68eecefde.tar.gz scummvm-rg350-39aa43dc8393283cda534fa1dfd5d7a68eecefde.tar.bz2 scummvm-rg350-39aa43dc8393283cda534fa1dfd5d7a68eecefde.zip |
Fix option dialogs for WinCE
svn-id: r7051
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/dialogs.cpp | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp index 5d1d53e2a7..fb5a1f90d8 100644 --- a/scumm/dialogs.cpp +++ b/scumm/dialogs.cpp @@ -464,17 +464,28 @@ enum { kAboutCmd = 'ABOU' }; +#ifndef _WIN32_WCE OptionsDialog::OptionsDialog(NewGui *gui, Scumm *scumm) : ScummDialog(gui, scumm, 40, 30, 240, 124) { +#else +OptionsDialog::OptionsDialog(NewGui *gui, Scumm *scumm) + : ScummDialog(gui, scumm, 40, 30, 240, 124 + kButtonHeight + 4) { +#endif // // Add the buttons // +#ifdef _WIN32_WCE + addButton(_w-kButtonWidth-8, _h-24 - kButtonHeight - 4, "OK", kOKCmd, 'O'); + addButton(_w-2*kButtonWidth-12, _h-24 - kButtonHeight - 4, "Cancel", kCancelCmd, 'C'); + + addButton(8, _h-24 - kButtonHeight - 4, "About", kAboutCmd, 'A'); + + addButton(kButtonWidth+12, _h-24, "Keys", kKeysCmd, 'K'); +#else addButton(_w-kButtonWidth-8, _h-24, "OK", kOKCmd, 'O'); addButton(_w-2*kButtonWidth-12, _h-24, "Cancel", kCancelCmd, 'C'); addButton(8, _h-24, "About", kAboutCmd, 'A'); -#ifdef _WIN32_WCE - addButton(kButtonWidth+12, _h-24, "Keys", kKeysCmd, 'K'); #endif // @@ -658,11 +669,11 @@ enum { KeysDialog::KeysDialog(NewGui *gui, Scumm *scumm) : ScummDialog(gui, scumm, 30, 20, 260, 160) { - addButton(200, 20, queryCustomString(24), kMapCmd, 'M'); // Map - addButton(200, 40, "OK", kOKCmd, 'O'); // OK - addButton(200, 60, "Cancel", kCancelCmd, 'C'); // Cancel + addButton(160, 20, queryCustomString(24), kMapCmd, 'M'); // Map + addButton(160, 40, "OK", kOKCmd, 'O'); // OK + addButton(160, 60, "Cancel", kCancelCmd, 'C'); // Cancel - _actionsList = new ListWidget(this, 10, 20, 180, 90); + _actionsList = new ListWidget(this, 10, 20, 140, 90); _actionsList->setNumberingMode(kListNumberingZero); _actionTitle = new StaticTextWidget(this, 10, 120, 240, 16, queryCustomString(25), kTextAlignCenter); |