diff options
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/dialogs.cpp | 14 | ||||
-rw-r--r-- | scumm/dialogs.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp index aeef1ec376..9125e5324b 100644 --- a/scumm/dialogs.cpp +++ b/scumm/dialogs.cpp @@ -43,8 +43,8 @@ #include "scumm/help.h" #endif -#ifdef _WIN32_WCE -#include "backends/wince/CEKeysDialog.h" +#ifdef SMALL_SCREEN_DEVICE +#include "KeysDialog.h" #endif using GUI::CommandSender; @@ -590,7 +590,7 @@ ConfigDialog::ConfigDialog(ScummEngine *scumm) addButton(this, _w - (buttonWidth + 4) - 4, yoffset, "OK", GUI::OptionsDialog::kOKCmd, 'O', ws); addButton(this, _w - 2 * (buttonWidth + 4) - 4, yoffset, "Cancel", kCloseCmd, 'C', ws); -#ifdef _WIN32_WCE +#ifdef SMALL_SCREEN_DEVICE addButton(this, _w - 3 * (buttonWidth + 4) - 4, yoffset, "Keys", kKeysCmd, 'K', ws); #endif @@ -601,17 +601,17 @@ ConfigDialog::ConfigDialog(ScummEngine *scumm) _x = (screenW - _w) / 2; _y = (screenH - _h) / 2; -#ifdef _WIN32_WCE +#ifdef SMALL_SCREEN_DEVICE // // Create the sub dialog(s) // - _keysDialog = new CEKeysDialog(); + _keysDialog = new GUI::KeysDialog(); #endif } ConfigDialog::~ConfigDialog() { -#ifdef _WIN32_WCE +#ifdef SMALL_SCREEN_DEVICE delete _keysDialog; #endif } @@ -647,7 +647,7 @@ void ConfigDialog::close() { void ConfigDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) { switch (cmd) { case kKeysCmd: -#ifdef _WIN32_WCE +#ifdef SMALL_SCREEN_DEVICE _keysDialog->runModal(); #endif break; diff --git a/scumm/dialogs.h b/scumm/dialogs.h index c390fa9abe..2a16a748cf 100644 --- a/scumm/dialogs.h +++ b/scumm/dialogs.h @@ -113,7 +113,7 @@ protected: class ConfigDialog : public GUI::OptionsDialog { protected: ScummEngine *_vm; -#ifdef _WIN32_WCE +#ifdef SMALL_SCREEN_DEVICE GUI::Dialog *_keysDialog; #endif |