aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dingux/dingux.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/dingux/dingux.h')
-rw-r--r--backends/platform/dingux/dingux.h41
1 files changed, 9 insertions, 32 deletions
diff --git a/backends/platform/dingux/dingux.h b/backends/platform/dingux/dingux.h
index 846ad3faf9..80b2ecae5f 100644
--- a/backends/platform/dingux/dingux.h
+++ b/backends/platform/dingux/dingux.h
@@ -26,44 +26,21 @@
#ifndef SDL_DINGUX_COMMON_H
#define SDL_DINGUX_COMMON_H
-#include <SDL.h>
+#if defined(DINGUX)
+#include <SDL.h>
#include "backends/base-backend.h"
#include "backends/platform/sdl/sdl.h"
+#include "backends/platform/sdl/posix/posix.h"
+#include "backends/graphics/dinguxsdl/dinguxsdl-graphics.h"
+#include "backends/events/dinguxsdl/dinguxsdl-events.h"
-#if defined(DINGUX)
-
-enum {
- GFX_HALF = 12
-};
-
-class OSystem_SDL_Dingux : public OSystem_SDL {
+class OSystem_SDL_Dingux : public OSystem_POSIX {
public:
- virtual bool hasFeature(Feature f);
- virtual void setFeatureState(Feature f, bool enable);
- virtual bool getFeatureState(Feature f);
- virtual int getDefaultGraphicsMode() const;
-
- void initSize(uint w, uint h);
- const OSystem::GraphicsMode *getSupportedGraphicsModes() const;
- bool setGraphicsMode(const char *name);
- bool setGraphicsMode(int mode);
- void setGraphicsModeIntern();
- void internUpdateScreen();
- void showOverlay();
- void hideOverlay();
- bool loadGFXMode();
- void drawMouse();
- void undrawMouse();
- void warpMouse(int, int);
- void fillMouseEvent(Common::Event&, int, int);
-
-protected:
- virtual bool remapKey(SDL_Event &ev, Common::Event &event);
+ void initBackend();
};
-#endif
-
-#endif
+#endif /* DINGUX */
+#endif /* SDL_DINGUX_COMMON_H */