aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sherlock/inventory.cpp2
-rw-r--r--engines/sherlock/scalpel/scalpel_user_interface.cpp2
-rw-r--r--engines/sherlock/screen.h1
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