[Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.63,1.64

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Sun Jun 22 08:00:05 CEST 2003


Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1:/tmp/cvs-serv13152/backends/sdl

Modified Files:
	sdl-common.cpp 
Log Message:
Fixed the last (?) glitches around the mouse cursor [*] in aspect-ratio
correction mode by making sure that dirty rects always start on a line
that won't have its colours changed by the stretching function. This was
probably only noticeable when using the 1x scaler.

[*] Actually, the glitches weren't specific to the mouse cursor, but it was
    useful for triggering them.


Index: sdl-common.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.cpp,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- sdl-common.cpp	22 Jun 2003 11:55:39 -0000	1.63
+++ sdl-common.cpp	22 Jun 2003 14:59:21 -0000	1.64
@@ -286,6 +286,9 @@
 		if (h > _screenHeight - y) {
 			h = _screenHeight - y;
 		}
+
+		if (_adjustAspectRatio)
+			makeRectStretchable(x, y, w, h);
 	
 		r->x = x;
 		r->y = y;





More information about the Scummvm-git-logs mailing list