diff options
author | Fabio Battaglia | 2010-10-23 09:30:26 +0000 |
---|---|---|
committer | Fabio Battaglia | 2010-10-23 09:30:26 +0000 |
commit | 74a53df11b51fa4956745c086b2e6351b8383568 (patch) | |
tree | 2ec2ce66310986e6bebdc21582e7e9c5ad3b014c /backends/platform/dingux/dingux.h | |
parent | b713beed189b439853be50fa330d06b3275f9713 (diff) | |
download | scummvm-rg350-74a53df11b51fa4956745c086b2e6351b8383568.tar.gz scummvm-rg350-74a53df11b51fa4956745c086b2e6351b8383568.tar.bz2 scummvm-rg350-74a53df11b51fa4956745c086b2e6351b8383568.zip |
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
Diffstat (limited to 'backends/platform/dingux/dingux.h')
-rw-r--r-- | backends/platform/dingux/dingux.h | 41 |
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 */ |