From 196cc38da19b867eaa9419343dd6ecd8212af354 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Oct 2012 19:48:26 +0300 Subject: Fix compilation errors and warnings in different modes. --- src/maplayer.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/maplayer.h') 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 #include @@ -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, -- cgit v1.2.3-70-g09d2