aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp2x/gp2x-common.h
diff options
context:
space:
mode:
authorJohn Willis2009-04-16 11:19:44 +0000
committerJohn Willis2009-04-16 11:19:44 +0000
commit52fa15561a282d6ac7b1a6e34312482d40de6b67 (patch)
treec137855c759e3044fd22ff05cbe8969f408603f6 /backends/platform/gp2x/gp2x-common.h
parent08eb58aab8c3c368129107a47f64755abb85e704 (diff)
downloadscummvm-rg350-52fa15561a282d6ac7b1a6e34312482d40de6b67.tar.gz
scummvm-rg350-52fa15561a282d6ac7b1a6e34312482d40de6b67.tar.bz2
scummvm-rg350-52fa15561a282d6ac7b1a6e34312482d40de6b67.zip
Backout previous 'ooops' change (while shaking a stick at SVN and trying to convince people (badly) that is was not just simple user error ;-)).
svn-id: r39961
Diffstat (limited to 'backends/platform/gp2x/gp2x-common.h')
-rw-r--r--backends/platform/gp2x/gp2x-common.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/backends/platform/gp2x/gp2x-common.h b/backends/platform/gp2x/gp2x-common.h
index 2b8f7c091e..7341b0646f 100644
--- a/backends/platform/gp2x/gp2x-common.h
+++ b/backends/platform/gp2x/gp2x-common.h
@@ -29,15 +29,13 @@
#include <SDL.h>
#include <SDL_gp2x.h>
-#include "common/scummsys.h"
-#include "common/system.h"
+#include "backends/base-backend.h"
#include "graphics/scaler.h"
#define __GP2X__
#define USE_OSD
-/* #define DISABLE_SCALERS
-#define MIXER_DOUBLE_BUFFERING 1 */
-
+/* #define DISABLE_SCALERS */
+#define MIXER_DOUBLE_BUFFERING 1
namespace Audio {
class MixerImpl;
@@ -59,7 +57,7 @@ enum {
};
-class OSystem_GP2X : public OSystem {
+class OSystem_GP2X : public BaseBackend {
public:
OSystem_GP2X();
virtual ~OSystem_GP2X();
@@ -189,8 +187,8 @@ public:
virtual FilesystemFactory *getFilesystemFactory();
virtual void addSysArchivesToSearchSet(Common::SearchSet &s, int priority = 0);
- virtual Common::SeekableReadStream *openConfigFileForReading();
- virtual Common::WriteStream *openConfigFileForWriting();
+ virtual Common::SeekableReadStream *createConfigReadStream();
+ virtual Common::WriteStream *createConfigWriteStream();
protected:
bool _inited;
@@ -285,6 +283,7 @@ protected:
enum {
NUM_DIRTY_RECT = 100,
+
MAX_MOUSE_W = 80,
MAX_MOUSE_H = 80,
MAX_SCALING = 3