aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2012-11-22 22:12:51 +0100
committerTorbjörn Andersson2012-11-22 22:12:51 +0100
commitc16de405d71933f932c4bab8ea8c3a216d6ea758 (patch)
tree852acd018e30651daba5a3cfbbcf5d3b3d066d5b
parent7f8b7e0916bf6cbbdc15d57f71eceba648034c50 (diff)
downloadscummvm-rg350-c16de405d71933f932c4bab8ea8c3a216d6ea758.tar.gz
scummvm-rg350-c16de405d71933f932c4bab8ea8c3a216d6ea758.tar.bz2
scummvm-rg350-c16de405d71933f932c4bab8ea8c3a216d6ea758.zip
TINSEL: Fix inventory scrolling
Adjusted NM_SLIDE_INSET and NM_SLIDE_THICKNESS to make the inventory scrollbar work as it did before Tinsel v1 and v2 were combined. The scrollbar worked before, but you had to click a bit to the left of it to operate it. It's the only place in the code where these constants are used, so it should not break anything else.
-rw-r--r--engines/tinsel/dialogs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tinsel/dialogs.cpp b/engines/tinsel/dialogs.cpp
index 56ee2ea752..66bf0c2cdb 100644
--- a/engines/tinsel/dialogs.cpp
+++ b/engines/tinsel/dialogs.cpp
@@ -234,8 +234,8 @@ enum PARTS_INDEX {
#define NM_RS_R_INSET 4
#define NM_RS_THICKNESS 5
#define NM_MOVE_AREA_B_Y 30
-#define NM_SLIDE_INSET (TinselV2 ? 18 : 15) // X offset (from right) of left of scroll region
-#define NM_SLIDE_THICKNESS (TinselV2 ? 13 : 4) // thickness of scroll region
+#define NM_SLIDE_INSET (TinselV2 ? 18 : 9) // X offset (from right) of left of scroll region
+#define NM_SLIDE_THICKNESS (TinselV2 ? 13 : 7) // thickness of scroll region
#define NM_UP_ARROW_TOP 34 // Y offset of top of up arrow
#define NM_UP_ARROW_BOTTOM 49 // Y offset of bottom of up arrow
#define NM_DN_ARROW_TOP 22 // Y offset (from bottom) of top of down arrow