summaryrefslogtreecommitdiff
path: root/src/safeopenglgraphics.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/safeopenglgraphics.cpp
parenta3082da9c7296bb18b7a6bc0424eb2a19d485ff6 (diff)
downloadplus-e1cacb5f675b782ba1cfee8906c78ec7793807c8.tar.gz
plus-e1cacb5f675b782ba1cfee8906c78ec7793807c8.tar.bz2
plus-e1cacb5f675b782ba1cfee8906c78ec7793807c8.tar.xz
plus-e1cacb5f675b782ba1cfee8906c78ec7793807c8.zip
rename target in graphics into window.
Diffstat (limited to 'src/safeopenglgraphics.cpp')
-rw-r--r--src/safeopenglgraphics.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/safeopenglgraphics.cpp b/src/safeopenglgraphics.cpp
index dd66011a9..4411c5130 100644
--- a/src/safeopenglgraphics.cpp
+++ b/src/safeopenglgraphics.cpp
@@ -397,8 +397,8 @@ void SafeOpenGLGraphics::_beginDraw()
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
- 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);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
@@ -416,7 +416,7 @@ void SafeOpenGLGraphics::_beginDraw()
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- pushClipArea(gcn::Rectangle(0, 0, mTarget->w, mTarget->h));
+ pushClipArea(gcn::Rectangle(0, 0, mWindow->w, mWindow->h));
}
void SafeOpenGLGraphics::_endDraw()
@@ -427,13 +427,13 @@ void SafeOpenGLGraphics::_endDraw()
void SafeOpenGLGraphics::prepareScreenshot()
{
if (config.getBoolValue("usefbo"))
- graphicsManager.createFBO(mTarget->w, mTarget->h, &mFbo);
+ graphicsManager.createFBO(mWindow->w, mWindow->h, &mFbo);
}
SDL_Surface* SafeOpenGLGraphics::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(
@@ -500,7 +500,7 @@ bool SafeOpenGLGraphics::pushClipArea(gcn::Rectangle area)
glPushMatrix();
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;
@@ -515,7 +515,7 @@ void SafeOpenGLGraphics::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);
}