[Scummvm-cvs-logs] CVS: scummvm/backends/wince wince-sdl.cpp,1.4.2.8,1.4.2.9

Nicolas Bacca arisme at users.sourceforge.net
Fri Mar 5 01:12:01 CET 2004


Update of /cvsroot/scummvm/scummvm/backends/wince
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12462

Modified Files:
      Tag: branch-0-6-0
	wince-sdl.cpp 
Log Message:
Fix the famous Landscape Monkey

Index: wince-sdl.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/wince-sdl.cpp,v
retrieving revision 1.4.2.8
retrieving revision 1.4.2.9
diff -u -d -r1.4.2.8 -r1.4.2.9
--- wince-sdl.cpp	4 Mar 2004 21:21:33 -0000	1.4.2.8
+++ wince-sdl.cpp	5 Mar 2004 08:49:53 -0000	1.4.2.9
@@ -328,8 +328,10 @@
 		// sound
 		panel->add(NAME_ITEM_SOUND, new ItemSwitch(ITEM_SOUND_OFF, ITEM_SOUND_ON, &_soundMaster)); 
 		// portrait/landscape - screen dependant
-		if (_screenWidth <= 320) 
+		if (_screenWidth <= 320) {
+			_newOrientation = _orientationLandscape = ConfMan.getBool("CE_landscape");
 			panel->add(NAME_ITEM_ORIENTATION, new ItemSwitch(ITEM_VIEW_LANDSCAPE, ITEM_VIEW_PORTRAIT, &_newOrientation));
+		}
 		_toolbarHandler.add(NAME_MAIN_PANEL, *panel);
 		_toolbarHandler.setActive(NAME_MAIN_PANEL);
 
@@ -376,9 +378,7 @@
 	_scaleFactorXd = -1;
 	_scaleFactorYm = -1;    
 	_scaleFactorYd = -1;  
-	_scaleFactor = 0;
-
-	_newOrientation = _orientationLandscape = ConfMan.getBool("CE_landscape");
+	_scaleFactor = 0;	
 
 	if (CEDevice::hasPocketPCResolution()) {
 		if (!_orientationLandscape && _screenWidth == 320) {





More information about the Scummvm-git-logs mailing list