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/normalopenglgraphics.cpp | |
parent | a3082da9c7296bb18b7a6bc0424eb2a19d485ff6 (diff) | |
download | manaplus-e1cacb5f675b782ba1cfee8906c78ec7793807c8.tar.gz manaplus-e1cacb5f675b782ba1cfee8906c78ec7793807c8.tar.bz2 manaplus-e1cacb5f675b782ba1cfee8906c78ec7793807c8.tar.xz manaplus-e1cacb5f675b782ba1cfee8906c78ec7793807c8.zip |
rename target in graphics into window.
Diffstat (limited to 'src/normalopenglgraphics.cpp')
-rw-r--r-- | src/normalopenglgraphics.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/normalopenglgraphics.cpp b/src/normalopenglgraphics.cpp index 74d8b4f63..bb4a03860 100644 --- a/src/normalopenglgraphics.cpp +++ b/src/normalopenglgraphics.cpp @@ -1049,11 +1049,11 @@ void NormalOpenGLGraphics::_beginDraw() glLoadIdentity(); #ifdef ANDROID - glOrthof(0.0, static_cast<float>(mTarget->w), - static_cast<float>(mTarget->h), 0.0, -1.0, 1.0); + glOrthof(0.0, static_cast<float>(mWindow->w), + static_cast<float>(mWindow->h), 0.0, -1.0, 1.0); #else - glOrtho(0.0, static_cast<double>(mTarget->w), - static_cast<double>(mTarget->h), 0.0, -1.0, 1.0); + glOrtho(0.0, static_cast<double>(mWindow->w), + static_cast<double>(mWindow->h), 0.0, -1.0, 1.0); #endif glMatrixMode(GL_MODELVIEW); @@ -1088,7 +1088,7 @@ void NormalOpenGLGraphics::_beginDraw() // glScalef(0.5f, 0.5f, 0.5f); - pushClipArea(gcn::Rectangle(0, 0, mTarget->w, mTarget->h)); + pushClipArea(gcn::Rectangle(0, 0, mWindow->w, mWindow->h)); } void NormalOpenGLGraphics::_endDraw() @@ -1099,13 +1099,13 @@ void NormalOpenGLGraphics::_endDraw() void NormalOpenGLGraphics::prepareScreenshot() { if (config.getBoolValue("usefbo")) - graphicsManager.createFBO(mTarget->w, mTarget->h, &mFbo); + graphicsManager.createFBO(mWindow->w, mWindow->h, &mFbo); } SDL_Surface* NormalOpenGLGraphics::getScreenshot() { - const int h = mTarget->h; - const int w = mTarget->w - (mTarget->w % 4); + const int h = mWindow->h; + const int w = mWindow->w - (mWindow->w % 4); GLint pack = 1; SDL_Surface *const screenshot = SDL_CreateRGBSurface( @@ -1177,7 +1177,7 @@ bool NormalOpenGLGraphics::pushClipArea(gcn::Rectangle area) glTranslatef(static_cast<GLfloat>(transX), static_cast<GLfloat>(transY), 0); } - glScissor(clipArea.x, mTarget->h - clipArea.y - clipArea.height, + glScissor(clipArea.x, mWindow->h - clipArea.y - clipArea.height, clipArea.width, clipArea.height); return result; @@ -1192,7 +1192,7 @@ void NormalOpenGLGraphics::popClipArea() glPopMatrix(); const gcn::ClipRectangle &clipArea = mClipStack.top(); - glScissor(clipArea.x, mTarget->h - clipArea.y - clipArea.height, + glScissor(clipArea.x, mWindow->h - clipArea.y - clipArea.height, clipArea.width, clipArea.height); } |