aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-20 18:19:56 +0100
committerJohannes Schickel2012-02-20 18:39:57 +0100
commitd91268c4c1e3e0b830e97d144a0548d9d7929bb8 (patch)
treefccb66ecd2697015394bd64a8870457802c48117 /backends/platform
parent87fb115def77cba564215e75f52bf6154211d1ec (diff)
downloadscummvm-rg350-d91268c4c1e3e0b830e97d144a0548d9d7929bb8.tar.gz
scummvm-rg350-d91268c4c1e3e0b830e97d144a0548d9d7929bb8.tar.bz2
scummvm-rg350-d91268c4c1e3e0b830e97d144a0548d9d7929bb8.zip
IPHONE: Rename _screenRect to _gameScreenRect.
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/iphone/iphone_video.m14
1 files changed, 7 insertions, 7 deletions
diff --git a/backends/platform/iphone/iphone_video.m b/backends/platform/iphone/iphone_video.m
index 6b96874085..49c66a6a7d 100644
--- a/backends/platform/iphone/iphone_video.m
+++ b/backends/platform/iphone/iphone_video.m
@@ -29,7 +29,7 @@ static int _width = 0;
static int _height = 0;
static int _fullWidth;
static int _fullHeight;
-static CGRect _screenRect;
+static CGRect _gameScreenRect;
static char *_gameScreenTextureBuffer = 0;
static int _gameScreenTextureWidth = 0;
@@ -208,13 +208,13 @@ static bool getMouseCoords(UIDeviceOrientation orientation, CGPoint point, int *
return false;
}
} else {
- if (point.x < _screenRect.origin.x || point.x >= _screenRect.origin.x + _screenRect.size.width ||
- point.y < _screenRect.origin.y || point.y >= _screenRect.origin.y + _screenRect.size.height) {
+ if (point.x < _gameScreenRect.origin.x || point.x >= _gameScreenRect.origin.x + _gameScreenRect.size.width ||
+ point.y < _gameScreenRect.origin.y || point.y >= _gameScreenRect.origin.y + _gameScreenRect.size.height) {
return false;
}
- point.x = (point.x - _screenRect.origin.x) / _screenRect.size.width;
- point.y = (point.y - _screenRect.origin.y) / _screenRect.size.height;
+ point.x = (point.x - _gameScreenRect.origin.x) / _gameScreenRect.size.width;
+ point.y = (point.y - _gameScreenRect.origin.y) / _gameScreenRect.size.height;
switch (orientation) {
case UIDeviceOrientationLandscapeLeft:
@@ -599,13 +599,13 @@ static void setFilterModeForTexture(GLuint tex, GraphicsModes mode) {
}
//printf("Rect: %i, %i, %i, %i\n", _widthOffset, _heightOffset, rectWidth, rectHeight);
- _screenRect = CGRectMake(_widthOffset, _heightOffset, rectWidth, rectHeight);
+ _gameScreenRect = CGRectMake(_widthOffset, _heightOffset, rectWidth, rectHeight);
_overlayPortraitRatio = 1.0f;
} else {
float ratio = (float)_height / (float)_width;
int height = _fullWidth * ratio;
//printf("Making rect (%u, %u)\n", _fullWidth, height);
- _screenRect = CGRectMake(0, 0, _fullWidth - 1, height - 1);
+ _gameScreenRect = CGRectMake(0, 0, _fullWidth - 1, height - 1);
_visibleHeight = height;
_visibleWidth = _renderBufferWidth;