diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-08 19:48:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-08 19:48:26 +0300 |
commit | 196cc38da19b867eaa9419343dd6ecd8212af354 (patch) | |
tree | afb2d39f88c213702a339cae6fa08f8248b5c1af /src/maplayer.h | |
parent | a80a1c69f8a5f4db88ade16e3b9d53f7b648be47 (diff) | |
download | manaverse-196cc38da19b867eaa9419343dd6ecd8212af354.tar.gz manaverse-196cc38da19b867eaa9419343dd6ecd8212af354.tar.bz2 manaverse-196cc38da19b867eaa9419343dd6ecd8212af354.tar.xz manaverse-196cc38da19b867eaa9419343dd6ecd8212af354.zip |
Fix compilation errors and warnings in different modes.
Diffstat (limited to 'src/maplayer.h')
-rw-r--r-- | src/maplayer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/maplayer.h b/src/maplayer.h index 355ae3f80..59a612cbb 100644 --- a/src/maplayer.h +++ b/src/maplayer.h @@ -26,6 +26,7 @@ #include "actor.h" #include "configlistener.h" #include "position.h" +#include "main.h" #include <string> #include <vector> @@ -114,15 +115,17 @@ class MapLayer final: public ConfigListener const int scrollX, const int scrollY, const int mDebugFlags) const; - void drawOGL(Graphics *const graphics); - void drawSDL(Graphics *const graphics); +#ifdef USE_OPENGL + void drawOGL(Graphics *const graphics); + void updateOGL(Graphics *const graphics, int startX, int startY, int endX, int endY, const int scrollX, const int scrollY, const int mDebugFlags); +#endif void updateSDL(Graphics *const graphics, int startX, int startY, |