From 74a53df11b51fa4956745c086b2e6351b8383568 Mon Sep 17 00:00:00 2001 From: Fabio Battaglia Date: Sat, 23 Oct 2010 09:30:26 +0000 Subject: DINGUX: fix compilation for the opengl branch Moved events related code to backends/events/dinguxsdl/* and move graphics related code to backends/graphics/dinguxsdl/* Subclass OSystem_POSIX instead of OSystem_SDL svn-id: r53730 --- backends/platform/dingux/dingux.h | 41 +++++++++------------------------------ 1 file changed, 9 insertions(+), 32 deletions(-) (limited to 'backends/platform/dingux/dingux.h') 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 +#if defined(DINGUX) +#include #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 */ -- cgit v1.2.3