diff options
author | Marcus Comstedt | 2003-12-21 19:36:21 +0000 |
---|---|---|
committer | Marcus Comstedt | 2003-12-21 19:36:21 +0000 |
commit | d2bfdd81163dcafc67f9c9eab0eda24a10d318bc (patch) | |
tree | d3fa439169459ce374ce3c3e268cc87728967e3a /backends/dc | |
parent | 2e99e3f1f9de9e8a5da3b30d4acf7294f6b67689 (diff) | |
download | scummvm-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.cpp | 8 |
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| |