[Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl.cpp,1.42,1.43 sdl_gl.cpp,1.50,1.51

Max Horn fingolfin at users.sourceforge.net
Sun Jul 20 17:02:08 CEST 2003


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

Modified Files:
	sdl.cpp sdl_gl.cpp 
Log Message:
part of patch #774556: fix for aspect mode + shaking

Index: sdl.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl.cpp,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- sdl.cpp	20 Jul 2003 18:53:27 -0000	1.42
+++ sdl.cpp	21 Jul 2003 00:01:05 -0000	1.43
@@ -215,6 +215,10 @@
 	// If the shake position changed, fill the dirty area with blackness
 	if (_currentShakePos != _newShakePos) {
 		SDL_Rect blackrect = {0, 0, _screenWidth * _scaleFactor, _newShakePos * _scaleFactor};
+
+		if (_adjustAspectRatio)
+			blackrect.h = real2Aspect(blackrect.h - 1) + 1;
+
 		SDL_FillRect(_hwscreen, &blackrect, 0);
 
 		_currentShakePos = _newShakePos;

Index: sdl_gl.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl_gl.cpp,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- sdl_gl.cpp	20 Jul 2003 18:53:27 -0000	1.50
+++ sdl_gl.cpp	21 Jul 2003 00:01:05 -0000	1.51
@@ -365,6 +365,10 @@
 			fb2gl.blit16(tmpSurface, 1, &blackrect, 0, 0);
 		} else { // SDL backend
 			SDL_Rect blackrect = {0, 0, _screenWidth * _scaleFactor, _newShakePos * _scaleFactor};
+
+			if (_adjustAspectRatio)
+				blackrect.h = real2Aspect(blackrect.h - 1) + 1;
+
 			SDL_FillRect(_hwscreen, &blackrect, 0);
 		}
 





More information about the Scummvm-git-logs mailing list