diff options
author | Max Horn | 2010-11-28 14:56:31 +0000 |
---|---|---|
committer | Max Horn | 2010-11-28 14:56:31 +0000 |
commit | 7760077cf530c35c969f9286145d9a36d0440d70 (patch) | |
tree | 34c67abbacefa26792ca77fc9f5360c77a34663d /backends/platform/dingux/dingux.h | |
parent | 284b49aabc54590e1444f06561a815c2a3c5de7e (diff) | |
parent | 74a53df11b51fa4956745c086b2e6351b8383568 (diff) | |
download | scummvm-rg350-7760077cf530c35c969f9286145d9a36d0440d70.tar.gz scummvm-rg350-7760077cf530c35c969f9286145d9a36d0440d70.tar.bz2 scummvm-rg350-7760077cf530c35c969f9286145d9a36d0440d70.zip |
Merging the gsoc2010-opengl branch
svn-id: r54518
Diffstat (limited to 'backends/platform/dingux/dingux.h')
-rw-r--r-- | backends/platform/dingux/dingux.h | 42 |
1 files changed, 9 insertions, 33 deletions
diff --git a/backends/platform/dingux/dingux.h b/backends/platform/dingux/dingux.h index 846ad3faf9..b56787528b 100644 --- a/backends/platform/dingux/dingux.h +++ b/backends/platform/dingux/dingux.h @@ -26,44 +26,20 @@ #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 */ |