summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-11-20 13:29:10 +0300
committerAndrei Karas <akaras@inbox.ru>2012-11-20 22:21:59 +0300
commit6637f4af57cd60008388bfefda1c37376c9d7042 (patch)
treeeb31d1c197c86583e5f2a525ca020de625f32919 /src/map.cpp
parentcadc0f8b6d0bd71f319c3e6576af05dcd0a7533f (diff)
downloadmv-6637f4af57cd60008388bfefda1c37376c9d7042.tar.gz
mv-6637f4af57cd60008388bfefda1c37376c9d7042.tar.bz2
mv-6637f4af57cd60008388bfefda1c37376c9d7042.tar.xz
mv-6637f4af57cd60008388bfefda1c37376c9d7042.zip
Add debug option to show draw calls per frame.
Also fix map draw and text in debug window with mobile OpenGL.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp
index f0fae1a9c..d5f61261c 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -364,7 +364,7 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY)
#ifdef USE_OPENGL
int updateFlag = 0;
- if (mOpenGL == 1)
+ if (mOpenGL == 1 || mOpenGL == 3)
{
if (mLastX != startX || mLastY != startY || mLastScrollX != scrollX
|| mLastScrollY != scrollY)
@@ -418,7 +418,7 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY)
else
{
#ifdef USE_OPENGL
- if (mOpenGL == 1 && updateFlag != 2)
+ if ((mOpenGL == 1 || mOpenGL == 3) && updateFlag != 2)
{
if (updateFlag)
{