Skip to content

Commit

Permalink
SHERLOCK: Added color enum for 235 (button background color?)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Torbjörn Andersson committed Jun 13, 2015
1 parent 2607230 commit 276a96f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/sherlock/inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion engines/sherlock/scalpel/scalpel_user_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ void ScalpelUserInterface::doInvControl() {
}

if (_selector != -1)
inv.highlight(_selector, 235);
inv.highlight(_selector, BUTTON_BACKGROUND);

_oldSelector = _selector;
}
Expand Down
1 change: 1 addition & 0 deletions engines/sherlock/screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 276a96f

Please sign in to comment.