From a0360c6e78dd4cebf34b3bfdc41305eedb5fd83d Mon Sep 17 00:00:00 2001
From: "p.kosyh"
Date: Thu, 14 Apr 2011 10:02:18 +0000
Subject: [PATCH] direct mode fix
---
src/sdl-instead/game.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/sdl-instead/game.c b/src/sdl-instead/game.c
index c241901..75d5369 100644
--- a/src/sdl-instead/game.c
+++ b/src/sdl-instead/game.c
@@ -3116,13 +3116,16 @@ int game_loop(void)
// game_highlight(ev.x, ev.y, 1);
}
- if (old_xref)
- game_highlight(x, y, 1);
- else {
- int x, y;
- gfx_cursor(&x, &y);
- game_highlight(x, y, 1);
+ if (game_theme.gfx_mode != GFX_MODE_DIRECT) {
+ if (old_xref)
+ game_highlight(x, y, 1);
+ else {
+ int x, y;
+ gfx_cursor(&x, &y);
+ game_highlight(x, y, 1);
+ }
}
+
game_cursor(CURSOR_ON);
if (err_msg) {
mouse_reset(1);