[Scummvm-cvs-logs] CVS: scummvm/kyra screen.cpp,1.26,1.27
kirben
kirben at users.sourceforge.net
Sat Nov 26 20:17:05 CET 2005
Update of /cvsroot/scummvm/scummvm/kyra
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3642/kyra
Modified Files:
screen.cpp
Log Message:
Add fix for cursors in CD version, from LordHoto.
Index: screen.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/kyra/screen.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- screen.cpp 27 Nov 2005 00:12:07 -0000 1.26
+++ screen.cpp 27 Nov 2005 04:16:51 -0000 1.27
@@ -1614,7 +1614,10 @@
int mouseHeight = *(shape+2);
int mouseWidth = (READ_LE_UINT16(shape + 3)) + 2;
-
+
+ if (_vm->features() & GF_TALKIE)
+ shape -= 2;
+
uint8 *cursor = (uint8 *)malloc(mouseHeight * mouseWidth);
fillRect(0, 0, mouseWidth, mouseHeight, 0, 8);
drawShape(8, shape, 0, 0, 0, 0);
More information about the Scummvm-git-logs
mailing list