diff options
author | Torbjörn Andersson | 2015-06-13 12:27:17 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2015-06-13 12:27:17 +0200 |
commit | 276a96f1274b3606f666e0c3ac9fb62d5659d24a (patch) | |
tree | e0d7f7733d1d6fed44db3d0a25335fdaeb9b6361 /engines/sherlock | |
parent | 26072306de2a22e7b090ff49f7b720807b76bcbc (diff) | |
download | scummvm-rg350-276a96f1274b3606f666e0c3ac9fb62d5659d24a.tar.gz scummvm-rg350-276a96f1274b3606f666e0c3ac9fb62d5659d24a.tar.bz2 scummvm-rg350-276a96f1274b3606f666e0c3ac9fb62d5659d24a.zip |
SHERLOCK: Added color enum for 235 (button background color?)
At some point, at least some of these will have to be handled
differentl for the 3DO version, since it uses 16 bpp. I hope this
will make them easier to find when that time comes.
Diffstat (limited to 'engines/sherlock')
-rw-r--r-- | engines/sherlock/inventory.cpp | 2 | ||||
-rw-r--r-- | engines/sherlock/scalpel/scalpel_user_interface.cpp | 2 | ||||
-rw-r--r-- | engines/sherlock/screen.h | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/engines/sherlock/inventory.cpp b/engines/sherlock/inventory.cpp index 7fedab8d37..929be0e9d4 100644 --- a/engines/sherlock/inventory.cpp +++ b/engines/sherlock/inventory.cpp @@ -152,7 +152,7 @@ void Inventory::putInv(InvSlamMode slamIt) { // Draw the background if (idx == ui._selector) { - bb.fillRect(r, 235); + bb.fillRect(r, BUTTON_BACKGROUND); } else if (slamIt == SLAM_SECONDARY_BUFFER) { bb.fillRect(r, BUTTON_MIDDLE); } diff --git a/engines/sherlock/scalpel/scalpel_user_interface.cpp b/engines/sherlock/scalpel/scalpel_user_interface.cpp index 8dd15e5827..ef9221882e 100644 --- a/engines/sherlock/scalpel/scalpel_user_interface.cpp +++ b/engines/sherlock/scalpel/scalpel_user_interface.cpp @@ -1079,7 +1079,7 @@ void ScalpelUserInterface::doInvControl() { } if (_selector != -1) - inv.highlight(_selector, 235); + inv.highlight(_selector, BUTTON_BACKGROUND); _oldSelector = _selector; } diff --git a/engines/sherlock/screen.h b/engines/sherlock/screen.h index 02c09be629..aa67e60b91 100644 --- a/engines/sherlock/screen.h +++ b/engines/sherlock/screen.h @@ -51,6 +51,7 @@ enum { BUTTON_TOP = 233, BUTTON_MIDDLE = 244, BUTTON_BOTTOM = 248, + BUTTON_BACKGROUND = 235, TALK_FOREGROUND = 12, TALK_NULL = 16, PEN_COLOR = 250 |