summaryrefslogtreecommitdiff
path: root/src/mobileopenglgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mobileopenglgraphics.cpp')
-rw-r--r--src/mobileopenglgraphics.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mobileopenglgraphics.cpp b/src/mobileopenglgraphics.cpp
index aa08f7b67..96fcc2304 100644
--- a/src/mobileopenglgraphics.cpp
+++ b/src/mobileopenglgraphics.cpp
@@ -841,11 +841,11 @@ void MobileOpenGLGraphics::_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);
@@ -879,7 +879,7 @@ void MobileOpenGLGraphics::_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 MobileOpenGLGraphics::_endDraw()
@@ -890,13 +890,13 @@ void MobileOpenGLGraphics::_endDraw()
void MobileOpenGLGraphics::prepareScreenshot()
{
if (config.getBoolValue("usefbo"))
- graphicsManager.createFBO(mTarget->w, mTarget->h, &mFbo);
+ graphicsManager.createFBO(mWindow->w, mWindow->h, &mFbo);
}
SDL_Surface* MobileOpenGLGraphics::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(
@@ -967,7 +967,7 @@ bool MobileOpenGLGraphics::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;
@@ -982,7 +982,7 @@ void MobileOpenGLGraphics::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);
}