aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-05-02 15:59:06 +0000
committerTorbjörn Andersson2004-05-02 15:59:06 +0000
commit2617f36cb6f87c9fc05da4aebcc9fc343540eaf7 (patch)
treebdb96d80047fabe87b204a4a29583fe4e95ca62c /saga
parent67d82f23d80b6b7721636c57974a6b0ea13ee0a8 (diff)
downloadscummvm-rg350-2617f36cb6f87c9fc05da4aebcc9fc343540eaf7.tar.gz
scummvm-rg350-2617f36cb6f87c9fc05da4aebcc9fc343540eaf7.tar.bz2
scummvm-rg350-2617f36cb6f87c9fc05da4aebcc9fc343540eaf7.zip
Made the cursor work a bit better in IHNM.
svn-id: r13749
Diffstat (limited to 'saga')
-rw-r--r--saga/gfx.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/saga/gfx.cpp b/saga/gfx.cpp
index 48e1d19a6a..f3f22913af 100644
--- a/saga/gfx.cpp
+++ b/saga/gfx.cpp
@@ -906,22 +906,22 @@ int GFX_SetPalette(R_SURFACE *surface, PALENTRY *pal) {
// there is only one cursor image.
if (GfxModule.white_index != best_windex) {
+ int white = (best_windex == 255) ? 254 : best_windex;
+
// Set up the mouse cursor
static byte cursor_img[R_CURSOR_W * R_CURSOR_H] = {
- 0, 0, 0, 255, 0, 0, 0,
- 0, 0, 0, 255, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0,
- 255, 255, 0, 0, 0, 255, 255,
- 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 255, 0, 0, 0,
- 0, 0, 0, 255, 0, 0, 0
+ 255, 255, 255, 0, 255, 255, 255,
+ 255, 255, 255, 0, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 255,
+ 0, 0, 255, 255, 255, 0, 0,
+ 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 255, 0, 255, 255, 255,
+ 255, 255, 255, 0, 255, 255, 255,
};
for (i = 0; i < R_CURSOR_W * R_CURSOR_H; i++) {
- if (cursor_img[i] == 0)
- cursor_img[i] = 255;
- else if (cursor_img[i] == 255)
- cursor_img[i] = best_windex;
+ if (cursor_img[i] != 255)
+ cursor_img[i] = white;
}
_system->setMouseCursor(cursor_img, R_CURSOR_W, R_CURSOR_H, 4, 4);