[Scummvm-cvs-logs] SF.net SVN: scummvm:[43029] scummvm/trunk/backends/platform/gp2xwiz

djwillis at users.sourceforge.net djwillis at users.sourceforge.net
Mon Aug 3 20:38:46 CEST 2009


Revision: 43029
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43029&view=rev
Author:   djwillis
Date:     2009-08-03 18:38:46 +0000 (Mon, 03 Aug 2009)

Log Message:
-----------
GP2XWiz: Fix bug with downscaled cursors.

Modified Paths:
--------------
    scummvm/trunk/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp
    scummvm/trunk/backends/platform/gp2xwiz/gp2xwiz-hw.cpp
    scummvm/trunk/backends/platform/gp2xwiz/gp2xwiz-main.cpp

Modified: scummvm/trunk/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp
===================================================================
--- scummvm/trunk/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp	2009-08-03 17:54:52 UTC (rev 43028)
+++ scummvm/trunk/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp	2009-08-03 18:38:46 UTC (rev 43029)
@@ -115,8 +115,6 @@
 void OSystem_GP2XWIZ::initSize(uint w, uint h) {
     assert(_transactionMode == kTransactionActive);
 
-    printf("Init Size: w=%d, h=%d\n", w, h);
-
 	// Avoid redundant res changes
 	if ((int)w == _videoMode.screenWidth && (int)h == _videoMode.screenHeight)
 		return;
@@ -371,11 +369,11 @@
 				assert(scalerProc != NULL);
 
                 if(_videoMode.mode == GFX_HALF && scalerProc == HalfScale){
-                    if(dst_x % 2 == 1){
+                    if(dst_x%2==1){
                         dst_x--;
                         dst_w++;
                     }
-                    if(dst_y % 2 == 1){
+                    if(dst_y%2==1){
                         dst_y--;
                         dst_h++;
                     }
@@ -441,8 +439,8 @@
 
 void OSystem_GP2XWIZ::hideOverlay() {
     if(_videoMode.mode == GFX_HALF){
-        _mouseCurState.x = _mouseCurState.x / 2;
-        _mouseCurState.y = _mouseCurState.y / 2;
+        _mouseCurState.x = _mouseCurState.x * 2;
+        _mouseCurState.y = _mouseCurState.y * 2;
     }
 	OSystem_SDL::hideOverlay();
 }

Modified: scummvm/trunk/backends/platform/gp2xwiz/gp2xwiz-hw.cpp
===================================================================
--- scummvm/trunk/backends/platform/gp2xwiz/gp2xwiz-hw.cpp	2009-08-03 17:54:52 UTC (rev 43028)
+++ scummvm/trunk/backends/platform/gp2xwiz/gp2xwiz-hw.cpp	2009-08-03 18:38:46 UTC (rev 43029)
@@ -48,7 +48,7 @@
 	VOLUME_UP				= 2,
 	VOLUME_CHANGE_RATE		= 8,
 	VOLUME_MIN				= 0,
-	VOLUME_INITIAL			= 70,
+	VOLUME_INITIAL			= 60,
 	VOLUME_MAX				= 100
 };
 

Modified: scummvm/trunk/backends/platform/gp2xwiz/gp2xwiz-main.cpp
===================================================================
--- scummvm/trunk/backends/platform/gp2xwiz/gp2xwiz-main.cpp	2009-08-03 17:54:52 UTC (rev 43028)
+++ scummvm/trunk/backends/platform/gp2xwiz/gp2xwiz-main.cpp	2009-08-03 18:38:46 UTC (rev 43029)
@@ -148,9 +148,9 @@
 	WIZ_HW::mixerMoveVolume(0);
 
 	/* Up default volume values as we use a seperate system level volume anyway. */
-	ConfMan.registerDefault("music_volume", 220);
-	ConfMan.registerDefault("sfx_volume", 220);
-	ConfMan.registerDefault("speech_volume", 220);
+	ConfMan.registerDefault("music_volume", 192);
+	ConfMan.registerDefault("sfx_volume", 192);
+	ConfMan.registerDefault("speech_volume", 192);
 
 	/* Trigger autosave every 4 minutes - On low batts 5 mins is about your warning time. */
 	ConfMan.registerDefault("autosave_period", 4 * 60);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list