aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMax Horn2002-12-25 12:53:47 +0000
committerMax Horn2002-12-25 12:53:47 +0000
commit0ef7d52448d972c13e203407f4f63c153f51f2d9 (patch)
tree8e22520dba9eecf77f95af4ed2da3064481be106 /backends
parentaa2a85de9938cbe56c076f9f56c2b2005263a51a (diff)
downloadscummvm-rg350-0ef7d52448d972c13e203407f4f63c153f51f2d9.tar.gz
scummvm-rg350-0ef7d52448d972c13e203407f4f63c153f51f2d9.tar.bz2
scummvm-rg350-0ef7d52448d972c13e203407f4f63c153f51f2d9.zip
fixed mouse cursor code to cope with CMI
svn-id: r6125
Diffstat (limited to 'backends')
-rw-r--r--backends/sdl/sdl-common.cpp3
-rw-r--r--backends/sdl/sdl-common.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp
index 464f569f17..d4d31148fb 100644
--- a/backends/sdl/sdl-common.cpp
+++ b/backends/sdl/sdl-common.cpp
@@ -400,6 +400,9 @@ void OSystem_SDL_Common::set_mouse_pos(int x, int y) {
}
void OSystem_SDL_Common::set_mouse_cursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y) {
+
+ assert(0 < w && w <= MAX_MOUSE_W);
+ assert(0 < h && h <= MAX_MOUSE_H);
_mouseCurState.w = w;
_mouseCurState.h = h;
diff --git a/backends/sdl/sdl-common.h b/backends/sdl/sdl-common.h
index ad168e2572..05a7d9e9b0 100644
--- a/backends/sdl/sdl-common.h
+++ b/backends/sdl/sdl-common.h
@@ -151,8 +151,8 @@ protected:
enum {
NUM_DIRTY_RECT = 100,
- MAX_MOUSE_W = 40,
- MAX_MOUSE_H = 40,
+ MAX_MOUSE_W = 80,
+ MAX_MOUSE_H = 80,
MAX_SCALING = 3
};