aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds/arm9/source/osystem_ds.h
diff options
context:
space:
mode:
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);