diff options
author | Ludvig Strigeus | 2001-10-11 10:15:58 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2001-10-11 10:15:58 +0000 |
commit | d511c45f4ae49a8ab43014f5c41d78230ee3fad0 (patch) | |
tree | e3f0b72c16abf2a8b047a48fca3e53edbd47a5ac /sdl.cpp | |
parent | 67c6b323ff8fdd62bfe61f0c9d6d89745b4b3384 (diff) | |
download | scummvm-rg350-d511c45f4ae49a8ab43014f5c41d78230ee3fad0.tar.gz scummvm-rg350-d511c45f4ae49a8ab43014f5c41d78230ee3fad0.tar.bz2 scummvm-rg350-d511c45f4ae49a8ab43014f5c41d78230ee3fad0.zip |
no SDL cursor
svn-id: r3423
Diffstat (limited to 'sdl.cpp')
-rw-r--r-- | sdl.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -17,6 +17,9 @@ * * Change Log: * $Log$ + * Revision 1.6 2001/10/11 10:15:58 strigeus + * no SDL cursor + * * Revision 1.5 2001/10/10 11:53:39 strigeus * smoother mouse + bug fix * @@ -267,11 +270,11 @@ void drawMouse(Scumm *s, int xdraw, int ydraw, int color, byte *mask, bool visib bits = mask[3] | (mask[2]<<8) | (mask[1]<<16); mask += 4; if ((uint)(ydraw+y)<200) { - for (x=0; x<24; x++,bits>>=1) { + for (x=0; x<24; x++,bits<<=1) { if ((uint)(xdraw+x)<320) { bak[x*2] = dst[x*2]; bak[x*2+1] = dst[x*2+1]; - if (bits&1) { + if (bits&(1<<23)) { dst[x*2] = color; dst[x*2+1] = color; dst[x*2+640] = color; @@ -306,9 +309,10 @@ void initGraphics(Scumm *s) { } /* Clean up on exit */ - atexit(SDL_Quit); + atexit(SDL_Quit); SDL_WM_SetCaption("ScummVM - Monkey Island 2: LeChuck's revenge","ScummVM - Monkey Island 2: LeChuck's revenge"); + SDL_ShowCursor(SDL_DISABLE); #if !defined(SCALEUP_2x2) screen = SDL_SetVideoMode(320, 200, 8, SDL_SWSURFACE); @@ -337,3 +341,4 @@ int main(int argc, char* argv[]) { scumm.scummMain(argc, argv); return 0; } + |