diff options
author | Johannes Schickel | 2012-02-20 18:19:56 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-02-20 18:39:57 +0100 |
commit | d91268c4c1e3e0b830e97d144a0548d9d7929bb8 (patch) | |
tree | fccb66ecd2697015394bd64a8870457802c48117 /backends/platform/iphone/iphone_video.m | |
parent | 87fb115def77cba564215e75f52bf6154211d1ec (diff) | |
download | scummvm-rg350-d91268c4c1e3e0b830e97d144a0548d9d7929bb8.tar.gz scummvm-rg350-d91268c4c1e3e0b830e97d144a0548d9d7929bb8.tar.bz2 scummvm-rg350-d91268c4c1e3e0b830e97d144a0548d9d7929bb8.zip |
IPHONE: Rename _screenRect to _gameScreenRect.
Diffstat (limited to 'backends/platform/iphone/iphone_video.m')
-rw-r--r-- | backends/platform/iphone/iphone_video.m | 14 |
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; |