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

djwillis at users.sourceforge.net djwillis at users.sourceforge.net
Wed Oct 20 15:00:58 CEST 2010


Revision: 53639
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53639&view=rev
Author:   djwillis
Date:     2010-10-20 13:00:58 +0000 (Wed, 20 Oct 2010)

Log Message:
-----------
GPH: Cleanup Readme and support scripts.

GP2X: Cleanup Readme.

SDL: Change a few backend defines to GPH_DEVICE from the device name (blocking main and loadGFXMode so they can be written elsewhere).

Modified Paths:
--------------
    scummvm/trunk/backends/platform/gp2x/build/README-GP2X
    scummvm/trunk/backends/platform/gp2x/build/config.sh
    scummvm/trunk/backends/platform/gp2x/build/scummvm.gpe
    scummvm/trunk/backends/platform/gp2x/gp2x.cpp
    scummvm/trunk/backends/platform/gph/build/config-alleng.sh
    scummvm/trunk/backends/platform/gph/build/config.sh
    scummvm/trunk/backends/platform/gph/build/scummvm-gdb.gpe
    scummvm/trunk/backends/platform/gph/build/scummvm.gpe
    scummvm/trunk/backends/platform/gph/caanoo/scummvm-gdb.gpe
    scummvm/trunk/backends/platform/gph/caanoo/scummvm.gpe
    scummvm/trunk/backends/platform/gph/caanoo-bundle.mk
    scummvm/trunk/backends/platform/gph/gp2xwiz-bundle.mk
    scummvm/trunk/backends/platform/gph/gph-events.cpp
    scummvm/trunk/backends/platform/gph/gph-main.cpp
    scummvm/trunk/backends/platform/sdl/graphics.cpp
    scummvm/trunk/backends/platform/sdl/main.cpp

Modified: scummvm/trunk/backends/platform/gp2x/build/README-GP2X
===================================================================
--- scummvm/trunk/backends/platform/gp2x/build/README-GP2X	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gp2x/build/README-GP2X	2010-10-20 13:00:58 UTC (rev 53639)
@@ -1,19 +1,10 @@
-ScummVM - GP2X SPECIFIC README - HEAD SVN
+ScummVM - GP2X SPECIFIC README
 ------------------------------------------------------------------------
 
 Contents:
 
     * About the backend/port <#About_the_backendport>
-    * Game compatability <#Game_compatibility>
-    * Included engines <#Included_engines>
     * Supported audio options <#Supported_audio_options>
-    * Supported cut-scene options <#Supported_cut-scene_options>
-    * Recent changes <#Recent_changes>
-    * How to save <#How_to_save>
-    * Controller mappings <#Controller_mappings>
-    * Know issues <#Know_issues>
-    * TODO's <#Major_TODOs>
-    * Additional resources/links <#Additional_resourceslinks>
     * Credits <#Credits>
 
 ------------------------------------------------------------------------
@@ -26,48 +17,25 @@
 for the most current information on the port and any updates to this
 documentation.
 
+The wiki includes detailed instructions on how to use the port and 
+control information.
+
 ------------------------------------------------------------------------
 About the backend/port
 
-This is the readme for the offficial GP2X ScummVM backend (also known as
+This is the readme for the official GP2X ScummVM backend (also known as
 the GP2X port).
 
 This is an SVN test release of ScummVM for the GP2X, it would be
 appreciated if this SVN test distribution was not mirrored and that
-people be directed to http://www.distant-earth.com/scummvm instead for
+people be directed to http://scummvm.distant-earth.com/ instead for
 updated SVN builds.
 
 Full supported official releases of the GP2X ScummVM backend are made in
 line with main official releases and are avalalble from the ScummVM
 downloads page <http://www.scummvm.org/downloads.php>.
 
-This build is in an active state of development and as such no
-?expected? behavior can be guaranteed ;).
-
-SVN builds are quickly tested with firmware 2.0.0 for reference.
-
-Please refer to the GP2X ScummVM forum
-<http://forums.scummvm.org/viewforum.php?f=14> and WiKi
-<http://wiki.scummvm.org/index.php/GP2X> for the latest information on
-the port.
-
 ------------------------------------------------------------------------
-Game compatibility
-
-For information on the compatability of a specific game please refer to
-the GP2X compatability section of the ScummVM WiKi
-<http://wiki.scummvm.org/index.php/GP2X#Compatibility_List>.
-
-Please note the version and date of the ScummVM build you are running
-when reviewing the above list.
-
-------------------------------------------------------------------------
-Included engines
-
-Just because an engine is included does not mean any/all of its games
-are supported. Please check game compatability for more infomation.
-
-------------------------------------------------------------------------
 Supported audio options
 
 Raw audio.
@@ -79,106 +47,6 @@
 For best results use uncompressed audio in games.
 
 ------------------------------------------------------------------------
-Supported cut-scene options
-
-No cut scene compression options are currently supported.
-
-DXA video support will be added as soon as it is stable.
-
-------------------------------------------------------------------------
-Recent changes
-
-Refined audio hacks to reduce audio delay a little more.
-Enabled hardware scalar code.
-Now built using SDL 1.2.9 for the parts of the port that use SDL (some
-parts now hit the hardware directly).
-Enabled new launcher - (Ensure defaulttheme.zip is in the same folder as
-the executable).
-Aspect Ratio Correction can now be disabled ?per game?. When adding a
-game you can find this option on the GFX tab.
-Note: This will cause the game to run with a black border at the bottom
-as it will be rendered to a 320*200 frame.
-
-------------------------------------------------------------------------
-How to save
-
-NOTE: Everything is saved to the SD card, saves are stored in the saves
-folder under your main ScummVM executable unless you set another save
-location.
-
-The configiration file for ScummVM (.scummvmrc) is stored in the same
-place as the ScummVM executable.
-
-The save process below is for Scumm engine games but the principle is
-the same for all.
-
-In Game.
-
-1. Right Trigger
-2. Select SAVE with B
-3. Select a position with B
-4. Right trigger puts ? in the name box for some text.
-5. Press B to save
-
-Basically the emulated keys you can use are equivelent to the values
-buttons are mapped to,
-
-I have a virtual keyboard like the GP32 one (left/right on the stick to
-pick chars) to add in at some point ;-)
-
-------------------------------------------------------------------------
-Controller mappings
-
-Mouse emulation:
-
-Stick: Move Pointer
-Stick Click: ?light? Left Click
-B: Left click
-X: Right click
-
-Keyboard emulation:
-
-Start: Return
-Select: Escape
-Y: Space Bar (Pause)
-Right Trigger: Game Menu (Save, Load, Quit etc.)
-Volume Buttons: Increase and Decrease volume (5% per press)
-
-Fancy button combos:
-
-NOTE: To use button combos press and hold the Left Trigger then...
-
-Y: Toggle "zoom" mode - Try it in larger games like Broken Sword.
-Volume Buttons: Increase and Decrease subtitle speed (In SCUMM games)
-Right Trigger: 0 (For skipping the copy protection in Monkey Island 2)
-Select: Exit ScummVM completely (and gracefully)
-
-------------------------------------------------------------------------
-Know issues
-
-Possible random crash (well SegFault). I have had this happen twice and
-have not tracked down the cause.
-It happens very infrequently, both times it was in the DOTT CD intro.
-Saving often is never a bad idea anyhow.
-
-------------------------------------------------------------------------
-TODO's
-
-Fix save support when using the Sky engine (Beneath a Steel Sky) - You
-CAN'T save at the moment but auto save works.
-
-------------------------------------------------------------------------
-Additional resources/links
-
-    * ScummVM WiKi GP2X page <http://wiki.scummvm.org/index.php/GP2X>
-    * ScummVM forums GP2X forum
-      <http://forums.scummvm.org/viewforum.php?f=14>
-    * My own ScummVM page <http://scummvm.distant-earth.com/> (for
-      SVN/test builds)
-    * Main ScummVM site <http://www.scummvm.org> (for official supported
-      release builds)
-
-------------------------------------------------------------------------
 Credits
 
 Core ScummVM code (c) The ScummVM Team

Modified: scummvm/trunk/backends/platform/gp2x/build/config.sh
===================================================================
--- scummvm/trunk/backends/platform/gp2x/build/config.sh	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gp2x/build/config.sh	2010-10-20 13:00:58 UTC (rev 53639)
@@ -18,6 +18,7 @@
 # Edit the configure line to suit.
 cd ../../../..
 ./configure --backend=gp2x --disable-mt32emu --host=gp2x --disable-flac --disable-nasm --disable-hq-scalers --with-sdl-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin --with-mpeg2-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-tremor --with-tremor-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-zlib --with-zlib-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-mad --with-mad-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-vkeybd
-#--enable-plugins --default-dynamic
+# --disable-release --enable-debug  
+# --enable-plugins --default-dynamic
 
 echo Generating config for GP2X complete. Check for errors.

Modified: scummvm/trunk/backends/platform/gp2x/build/scummvm.gpe
===================================================================
--- scummvm/trunk/backends/platform/gp2x/build/scummvm.gpe	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gp2x/build/scummvm.gpe	2010-10-20 13:00:58 UTC (rev 53639)
@@ -4,7 +4,7 @@
 mount -o sync,remount /dev/mmcsd/disc0/part1 /mnt/sd/
 
 # Run ScummVM, important this bit.
-./scummvm.gp2x
+./scummvm.gph
 
 # Sync the SD card to check that everything is written.
 sync

Modified: scummvm/trunk/backends/platform/gp2x/gp2x.cpp
===================================================================
--- scummvm/trunk/backends/platform/gp2x/gp2x.cpp	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gp2x/gp2x.cpp	2010-10-20 13:00:58 UTC (rev 53639)
@@ -115,7 +115,7 @@
 	char workDirName[PATH_MAX+1];
 
 	if (getcwd(workDirName, PATH_MAX) == NULL) {
-		error("Could not obtain current working directory");
+		error("Could not obtain current working directory.");
 	} else {
 		printf("Current working directory: %s\n", workDirName);
 	}
@@ -328,7 +328,7 @@
 	char workDirName[PATH_MAX+1];
 
 	if (getcwd(workDirName, PATH_MAX) == NULL) {
-		error("Error: Could not obtain current working directory");
+		error("Error: Could not obtain current working directory.");
 	}
 
 	Common::FSNode workdirNode(workDirName);

Modified: scummvm/trunk/backends/platform/gph/build/config-alleng.sh
===================================================================
--- scummvm/trunk/backends/platform/gph/build/config-alleng.sh	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gph/build/config-alleng.sh	2010-10-20 13:00:58 UTC (rev 53639)
@@ -13,10 +13,15 @@
 export CXXFLAGS="-mcpu=arm926ej-s -mtune=arm926ej-s"
 export CPPFLAGS=-I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include
 export LDFLAGS=-L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib
-export DEFINES=-DNDEBUG
 
 # Edit the configure line to suit.
 cd ../../../..
-./configure --backend=gp2xwiz --disable-mt32emu --host=gp2xwiz --disable-flac --disable-nasm --disable-hq-scalers --with-sdl-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin --with-mpeg2-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-tremor --with-tremor-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-zlib --with-zlib-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-mad --with-mad-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-all-engines --enable-vkeybd --enable-plugins --default-dynamic
+./configure --backend=gph --disable-mt32emu --host=gp2xwiz --disable-flac --disable-nasm --disable-hq-scalers \
+  --with-sdl-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin --with-mpeg2-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
+  --enable-tremor --with-tremor-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
+  --enable-zlib   --with-zlib-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
+  --enable-mad --with-mad-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
+  --enable-png --with-png-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
+  --enable-vkeybd --enable-all-engines --enable-plugins --default-dynamic
 
 echo Generating config for GP2X Wiz complete. Check for errors.

Modified: scummvm/trunk/backends/platform/gph/build/config.sh
===================================================================
--- scummvm/trunk/backends/platform/gph/build/config.sh	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gph/build/config.sh	2010-10-20 13:00:58 UTC (rev 53639)
@@ -13,10 +13,15 @@
 export CXXFLAGS="-mcpu=arm926ej-s -mtune=arm926ej-s"
 export CPPFLAGS=-I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include
 export LDFLAGS=-L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib
-export DEFINES=-DNDEBUG
 
 # Edit the configure line to suit.
 cd ../../../..
-./configure --backend=gp2xwiz --disable-mt32emu --host=gp2xwiz --disable-flac --disable-nasm --disable-hq-scalers --with-sdl-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin --with-mpeg2-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-tremor --with-tremor-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-zlib --with-zlib-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-mad --with-mad-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-vkeybd --enable-plugins --default-dynamic
+./configure --backend=gph --disable-mt32emu --host=gp2xwiz --disable-flac --disable-nasm --disable-hq-scalers \
+  --with-sdl-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin --with-mpeg2-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
+  --enable-tremor --with-tremor-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
+  --enable-zlib   --with-zlib-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
+  --enable-mad --with-mad-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
+  --enable-png --with-png-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
+  --enable-vkeybd --enable-plugins --default-dynamic
 
 echo Generating config for GP2X Wiz complete. Check for errors.

Modified: scummvm/trunk/backends/platform/gph/build/scummvm-gdb.gpe
===================================================================
--- scummvm/trunk/backends/platform/gph/build/scummvm-gdb.gpe	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gph/build/scummvm-gdb.gpe	2010-10-20 13:00:58 UTC (rev 53639)
@@ -6,7 +6,7 @@
 
 # Run ScummVM via GDB (so make sure you have a terminal open or serial).
 # Oh, and GDB installed of course ;)
-gdb --args ./scummvm.wiz --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
+gdb --args ./scummvm.gph --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
 
 # Sync the SD card to check that everything is written.
 sync

Modified: scummvm/trunk/backends/platform/gph/build/scummvm.gpe
===================================================================
--- scummvm/trunk/backends/platform/gph/build/scummvm.gpe	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gph/build/scummvm.gpe	2010-10-20 13:00:58 UTC (rev 53639)
@@ -5,7 +5,7 @@
 export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
 
 # Run ScummVM, important this bit.
-./scummvm.wiz --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
+./scummvm.gph --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc 
 
 # Sync the SD card to check that everything is written.
 sync

Modified: scummvm/trunk/backends/platform/gph/caanoo/scummvm-gdb.gpe
===================================================================
--- scummvm/trunk/backends/platform/gph/caanoo/scummvm-gdb.gpe	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gph/caanoo/scummvm-gdb.gpe	2010-10-20 13:00:58 UTC (rev 53639)
@@ -6,7 +6,7 @@
 
 # Run ScummVM via GDB (so make sure you have a terminal open or serial).
 # Oh, and GDB installed of course ;)
-gdb --args ./scummvm.caanoo --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
+gdb --args ./scummvm.gph --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
 
 # Sync the SD card to check that everything is written.
 sync

Modified: scummvm/trunk/backends/platform/gph/caanoo/scummvm.gpe
===================================================================
--- scummvm/trunk/backends/platform/gph/caanoo/scummvm.gpe	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gph/caanoo/scummvm.gpe	2010-10-20 13:00:58 UTC (rev 53639)
@@ -5,7 +5,7 @@
 export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
 
 # Run ScummVM, important this bit.
-./scummvm.caanoo --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
+./scummvm.gph --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
 
 # Sync the SD card to check that everything is written.
 sync

Modified: scummvm/trunk/backends/platform/gph/caanoo-bundle.mk
===================================================================
--- scummvm/trunk/backends/platform/gph/caanoo-bundle.mk	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gph/caanoo-bundle.mk	2010-10-20 13:00:58 UTC (rev 53639)
@@ -17,7 +17,7 @@
 	$(CP) $(srcdir)/backends/platform/gph/caanoo/scummvm.gpe $(bundle_name)/scummvm/
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvm.png $(bundle_name)/scummvm/
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvmb.png $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/backends/platform/gph/build/README-GP2XWIZ $(bundle_name)/scummvm/README-CAANOO
+	$(CP) $(srcdir)/backends/platform/gph/build/README-GPH $(bundle_name)/scummvm/
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvm.ini $(bundle_name)/
 
 	$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) $(bundle_name)/scummvm/
@@ -48,7 +48,7 @@
 	$(CP) $(srcdir)/backends/platform/gph/caanoo/scummvm-gdb.gpe $(bundle_name)/scummvm/scummvm.gpe
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvm.png $(bundle_name)/scummvm/
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvmb.png $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/backends/platform/gph/build/README-GP2XWIZ $(bundle_name)/scummvm/README-CAANOO
+	$(CP) $(srcdir)/backends/platform/gph/build/README-GPH $(bundle_name)/scummvm/
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvm.ini $(bundle_name)/
 
 	$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) $(bundle_name)/scummvm/

Modified: scummvm/trunk/backends/platform/gph/gp2xwiz-bundle.mk
===================================================================
--- scummvm/trunk/backends/platform/gph/gp2xwiz-bundle.mk	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gph/gp2xwiz-bundle.mk	2010-10-20 13:00:58 UTC (rev 53639)
@@ -17,7 +17,7 @@
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvm.gpe $(bundle_name)/scummvm/
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvm.png $(bundle_name)/scummvm/
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvmb.png $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/backends/platform/gph/build/README-GP2XWIZ $(bundle_name)/scummvm/
+	$(CP) $(srcdir)/backends/platform/gph/build/README-GPH $(bundle_name)/scummvm/
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvm.ini $(bundle_name)/
 
 	$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) $(bundle_name)/scummvm/
@@ -51,7 +51,7 @@
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvm-gdb.gpe $(bundle_name)/scummvm/scummvm.gpe
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvm.png $(bundle_name)/scummvm/
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvmb.png $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/backends/platform/gph/build/README-GP2XWIZ $(bundle_name)/scummvm/
+	$(CP) $(srcdir)/backends/platform/gph/build/README-GPH $(bundle_name)/scummvm/
 	$(CP) $(srcdir)/backends/platform/gph/build/scummvm.ini $(bundle_name)/
 
 	$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) $(bundle_name)/scummvm/

Modified: scummvm/trunk/backends/platform/gph/gph-events.cpp
===================================================================
--- scummvm/trunk/backends/platform/gph/gph-events.cpp	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gph/gph-events.cpp	2010-10-20 13:00:58 UTC (rev 53639)
@@ -253,7 +253,6 @@
 			event.type = Common::EVENT_MOUSEMOVE;
 		else
 			event.type = Common::EVENT_LBUTTONUP; /* For normal mice etc. */
-
 	}
 	else if (ev.button.button == SDL_BUTTON_RIGHT)
 		event.type = Common::EVENT_RBUTTONUP;

Modified: scummvm/trunk/backends/platform/gph/gph-main.cpp
===================================================================
--- scummvm/trunk/backends/platform/gph/gph-main.cpp	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/gph/gph-main.cpp	2010-10-20 13:00:58 UTC (rev 53639)
@@ -26,6 +26,7 @@
 #include "common/scummsys.h"
 #include <SDL/SDL.h>
 
+// #include "backends/platform/gph/gph-options.h"
 #include "backends/platform/gph/gph-sdl.h"
 #include "backends/platform/gph/gph-hw.h"
 #include "backends/plugins/posix/posix-provider.h"
@@ -78,7 +79,7 @@
 	char workDirName[PATH_MAX+1];
 
 	if (getcwd(workDirName, PATH_MAX) == NULL) {
-		error("Could not obtain current working directory");
+		error("Could not obtain current working directory.");
 	} else {
 		printf("Current working directory: %s\n", workDirName);
 	}
@@ -158,6 +159,9 @@
 	/* Make sure SDL knows that we have a joystick we want to use. */
 	ConfMan.setInt("joystick_num", 0);
 
+	/* Now setup any device specific user options (Left handed mode, that sort of thing). */
+	// GPH::setOptions();
+
 	printf("%s\n", "Passing to OSystem::SDL initBackend.");
 
 	/* Pass to SDL backend to do the heavy lifting */
@@ -170,7 +174,7 @@
 	char workDirName[PATH_MAX+1];
 
 	if (getcwd(workDirName, PATH_MAX) == NULL) {
-		error("Error: Could not obtain current working directory");
+		error("Error: Could not obtain current working directory.");
 	}
 
 	Common::FSNode workdirNode(workDirName);

Modified: scummvm/trunk/backends/platform/sdl/graphics.cpp
===================================================================
--- scummvm/trunk/backends/platform/sdl/graphics.cpp	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/sdl/graphics.cpp	2010-10-20 13:00:58 UTC (rev 53639)
@@ -539,7 +539,7 @@
 	assert(_inited);
 	_forceFull = true;
 
-#if !defined(__MAEMO__) && !defined(GP2XWIZ) && !defined(LINUXMOTO) && !defined(DINGUX) && !defined(OPENPANDORA)
+#if !defined(__MAEMO__) && !defined(DINGUX) && !defined(GPH_DEVICE) && !defined(LINUXMOTO) && !defined(OPENPANDORA)
 	_videoMode.overlayWidth = _videoMode.screenWidth * _videoMode.scaleFactor;
 	_videoMode.overlayHeight = _videoMode.screenHeight * _videoMode.scaleFactor;
 

Modified: scummvm/trunk/backends/platform/sdl/main.cpp
===================================================================
--- scummvm/trunk/backends/platform/sdl/main.cpp	2010-10-20 11:11:09 UTC (rev 53638)
+++ scummvm/trunk/backends/platform/sdl/main.cpp	2010-10-20 13:00:58 UTC (rev 53639)
@@ -38,7 +38,7 @@
 
 // Several SDL based ports use a custom main, and hence do not want to compile
 // of this file. The following "#if" ensures that.
-#if !defined(__MAEMO__) && !defined(_WIN32_WCE) && !defined(CAANOO) && !defined(GP2XWIZ) && !defined(LINUXMOTO) && !defined(OPENPANDORA) && !defined(__SYMBIAN32__) && !defined(DINGUX)
+#if !defined(__MAEMO__) && !defined(__SYMBIAN32__) && !defined(_WIN32_WCE) && !defined(DINGUX) && !defined(GPH_DEVICE) && !defined(LINUXMOTO) && !defined(OPENPANDORA)
 
 
 #include "backends/platform/sdl/sdl.h"


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