diff options
Diffstat (limited to 'src/render/graphics.h')
-rw-r--r-- | src/render/graphics.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/render/graphics.h b/src/render/graphics.h index 0f0e14776..516e56c63 100644 --- a/src/render/graphics.h +++ b/src/render/graphics.h @@ -237,7 +237,11 @@ class Graphics notfinal */ virtual void updateScreen() = 0; +#ifdef USE_SDL2 void setWindowSize(const int width, const int height); +#else + void setWindowSize(const int width, const int height) A_CONST; +#endif /** * Returns the width of the screen. @@ -386,7 +390,11 @@ class Graphics notfinal virtual void drawRectangle(const Rect &rectangle) = 0; #ifdef USE_OPENGL +#ifdef USE_SDL2 virtual void createGLContext(); +#else + virtual void createGLContext() A_CONST; +#endif #endif /** |