aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds/arm9/source/osystem_ds.h
diff options
context:
space:
mode:
authorNeil Millstone2007-12-21 18:36:40 +0000
committerNeil Millstone2007-12-21 18:36:40 +0000
commit764dc651012c07f8820b9001321f4f66f15116c6 (patch)
treeb03da4f6b7535c1c40fda6fec4d0075103cb1e74 /backends/platform/ds/arm9/source/osystem_ds.h
parent1cfedb217ab5bbf0545e92fc0649bfb368c1ee1b (diff)
downloadscummvm-rg350-764dc651012c07f8820b9001321f4f66f15116c6.tar.gz
scummvm-rg350-764dc651012c07f8820b9001321f4f66f15116c6.tar.bz2
scummvm-rg350-764dc651012c07f8820b9001321f4f66f15116c6.zip
Scaler corruption fixes, scaler console fixes, adding Lure target (except it doesn't quite work yet), adding function keys to virtual keyboard
svn-id: r29944
Diffstat (limited to 'backends/platform/ds/arm9/source/osystem_ds.h')
-rw-r--r--backends/platform/ds/arm9/source/osystem_ds.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/backends/platform/ds/arm9/source/osystem_ds.h b/backends/platform/ds/arm9/source/osystem_ds.h
index 0dc790030a..cae40be634 100644
--- a/backends/platform/ds/arm9/source/osystem_ds.h
+++ b/backends/platform/ds/arm9/source/osystem_ds.h
@@ -41,9 +41,8 @@ class DSTimerManager : public DefaultTimerManager {
class OSystem_DS : public OSystem {
-public:
+protected:
- static OSystem_DS *instance() { return _instance; }
int eventNum;
int lastPenFrame;
@@ -55,18 +54,22 @@ public:
DSAudioMixer* _mixer;
DSTimerManager* _timer;
Graphics::Surface _framebuffer;
+ bool _frameBufferExists;
static OSystem_DS* _instance;
- typedef void (*SoundProc)(void *param, byte *buf, int len);
- typedef int (*TimerProc)(int interval);
+ Graphics::Surface* createTempFrameBuffer();
public:
+ typedef void (*SoundProc)(void *param, byte *buf, int len);
+ typedef int (*TimerProc)(int interval);
OSystem_DS();
virtual ~OSystem_DS();
+ static OSystem_DS *instance() { return _instance; }
+
virtual bool hasFeature(Feature f);
virtual void setFeatureState(Feature f, bool enable);
virtual bool getFeatureState(Feature f);