diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-21 21:47:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:15 +0300 |
commit | e1cacb5f675b782ba1cfee8906c78ec7793807c8 (patch) | |
tree | 2c4c1160d1034b451ad38b1c33537bed3510a397 /src/graphics.cpp | |
parent | a3082da9c7296bb18b7a6bc0424eb2a19d485ff6 (diff) | |
download | mv-e1cacb5f675b782ba1cfee8906c78ec7793807c8.tar.gz mv-e1cacb5f675b782ba1cfee8906c78ec7793807c8.tar.bz2 mv-e1cacb5f675b782ba1cfee8906c78ec7793807c8.tar.xz mv-e1cacb5f675b782ba1cfee8906c78ec7793807c8.zip |
rename target in graphics into window.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r-- | src/graphics.cpp | 8 |
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) |