aboutsummaryrefslogtreecommitdiff
path: root/backends/dc
diff options
context:
space:
mode:
authorMarcus Comstedt2003-12-21 19:36:21 +0000
committerMarcus Comstedt2003-12-21 19:36:21 +0000
commitd2bfdd81163dcafc67f9c9eab0eda24a10d318bc (patch)
treed3fa439169459ce374ce3c3e268cc87728967e3a /backends/dc
parent2e99e3f1f9de9e8a5da3b30d4acf7294f6b67689 (diff)
downloadscummvm-rg350-d2bfdd81163dcafc67f9c9eab0eda24a10d318bc.tar.gz
scummvm-rg350-d2bfdd81163dcafc67f9c9eab0eda24a10d318bc.tar.bz2
scummvm-rg350-d2bfdd81163dcafc67f9c9eab0eda24a10d318bc.zip
Invisible mouse pointer fix.
svn-id: r11840
Diffstat (limited to 'backends/dc')
-rw-r--r--backends/dc/display.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/backends/dc/display.cpp b/backends/dc/display.cpp
index be49b9d9e1..d640eb0a02 100644
--- a/backends/dc/display.cpp
+++ b/backends/dc/display.cpp
@@ -434,7 +434,7 @@ void OSystem_Dreamcast::drawMouse(int xdraw, int ydraw, int w, int h,
unsigned short *dst = (unsigned short *)mouse_tx[_mouse_buffer];
int y=0;
- if(visible && w<=MOUSE_W && h<=MOUSE_H)
+ if(visible && w && h && w<=MOUSE_W && h<=MOUSE_H)
for(int y=0; y<h; y++) {
int x;
for(x=0; x<w; x++)
@@ -445,8 +445,10 @@ void OSystem_Dreamcast::drawMouse(int xdraw, int ydraw, int w, int h,
*dst++ = palette[*buf++]|0x8000;
dst += MOUSE_W-x;
}
- else
- w = h = 0;
+ else {
+ commit_dummy_transpoly();
+ return;
+ }
mypoly.cmd =
TA_CMD_POLYGON|TA_CMD_POLYGON_TYPE_TRANSPARENT|TA_CMD_POLYGON_SUBLIST|