aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorEugene Sandulenko2004-05-05 02:35:33 +0000
committerEugene Sandulenko2004-05-05 02:35:33 +0000
commit5a5e6ba8680b5642f648431ce1fcd932f151a3b4 (patch)
treece00b34865b10124175020293a6191a3a1a656b3 /saga
parentb7e62e4b61c7552fa91c9dbdd9273b620d7f876b (diff)
downloadscummvm-rg350-5a5e6ba8680b5642f648431ce1fcd932f151a3b4.tar.gz
scummvm-rg350-5a5e6ba8680b5642f648431ce1fcd932f151a3b4.tar.bz2
scummvm-rg350-5a5e6ba8680b5642f648431ce1fcd932f151a3b4.zip
Now cursor is really always shown.
svn-id: r13778
Diffstat (limited to 'saga')
-rw-r--r--saga/gfx.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/saga/gfx.cpp b/saga/gfx.cpp
index dd5335312e..c98ebc5da5 100644
--- a/saga/gfx.cpp
+++ b/saga/gfx.cpp
@@ -1060,26 +1060,28 @@ int GFX_BlackToPal(R_SURFACE *surface, PALENTRY *src_pal, double percent) {
}
void GFX_SetCursor(int best_white) {
- int white = (best_white == 255) ? 254 : best_white;
int i;
+ byte keycolor = (best_white == 0) ? 1 : 0;
// Set up the mouse cursor
- static byte cursor_img[R_CURSOR_W * R_CURSOR_H] = {
- 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,
+ 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,
};
for (i = 0; i < R_CURSOR_W * R_CURSOR_H; i++) {
- if (cursor_img[i] != 255)
- cursor_img[i] = white;
+ if (cursor_img[i] != 0)
+ cursor_img[i] = best_white;
+ else
+ cursor_img[i] = keycolor;
}
- _system->setMouseCursor(cursor_img, R_CURSOR_W, R_CURSOR_H, 4, 4);
+ _system->setMouseCursor(cursor_img, R_CURSOR_W, R_CURSOR_H, 4, 4, keycolor);
}
} // End of namespace Saga