summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-21 21:47:18 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:15 +0300
commite1cacb5f675b782ba1cfee8906c78ec7793807c8 (patch)
tree2c4c1160d1034b451ad38b1c33537bed3510a397 /src/graphics.cpp
parenta3082da9c7296bb18b7a6bc0424eb2a19d485ff6 (diff)
downloadmanaverse-e1cacb5f675b782ba1cfee8906c78ec7793807c8.tar.gz
manaverse-e1cacb5f675b782ba1cfee8906c78ec7793807c8.tar.bz2
manaverse-e1cacb5f675b782ba1cfee8906c78ec7793807c8.tar.xz
manaverse-e1cacb5f675b782ba1cfee8906c78ec7793807c8.zip
rename target in graphics into window.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 09ea4d880..188ad85d6 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -52,7 +52,7 @@ Graphics::Graphics() :
gcn::Graphics(),
mWidth(0),
mHeight(0),
- mTarget(nullptr),
+ mWindow(nullptr),
mBpp(0),
mAlpha(false),
mFullscreen(false),
@@ -141,7 +141,7 @@ bool Graphics::setOpenGLMode()
{
#ifdef USE_OPENGL
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
- if (!(mTarget = SDL_SetVideoMode(mWidth, mHeight, mBpp, getOpenGLFlags())))
+ if (!(mWindow = SDL_SetVideoMode(mWidth, mHeight, mBpp, getOpenGLFlags())))
return false;
#ifdef __APPLE__
@@ -266,10 +266,10 @@ bool Graphics::videoInfo()
else
logger->log1("Using video driver: unknown");
- mDoubleBuffer = ((mTarget->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF);
+ mDoubleBuffer = ((mWindow->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF);
logger->log("Double buffer mode: %s", mDoubleBuffer ? "yes" : "no");
- imageHelper->dumpSurfaceFormat(mTarget);
+ imageHelper->dumpSurfaceFormat(mWindow);
const SDL_VideoInfo *const vi = SDL_GetVideoInfo();
if (!vi)