[Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.19,1.20
Max Horn
fingolfin at users.sourceforge.net
Sat Dec 21 04:20:04 CET 2002
Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1:/tmp/cvs-serv26427/backends/sdl
Modified Files:
sdl-common.cpp
Log Message:
small mod to allow smooth scrolling to work with SDL backend
Index: sdl-common.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- sdl-common.cpp 13 Dec 2002 17:43:46 -0000 1.19
+++ sdl-common.cpp 21 Dec 2002 11:58:46 -0000 1.20
@@ -123,7 +123,7 @@
if (_screen == NULL)
return;
- if (pitch == _screenWidth && x==0 && y==0 && w==_screenWidth && h==_screenHeight && _mode_flags&DF_WANT_RECT_OPTIM) {
+ if (((uint32)buf & 3) == 0 && pitch == _screenWidth && x==0 && y==0 && w==_screenWidth && h==_screenHeight && _mode_flags&DF_WANT_RECT_OPTIM) {
/* Special, optimized case for full screen updates.
* It tries to determine what areas were actually changed,
* and just updates those, on the actual display. */
More information about the Scummvm-git-logs
mailing list