mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
IPHONE: Add _overlayRect, which describes the overlay screen rect.
This commit is contained in:
parent
aa42d78658
commit
cc8a6cc993
@ -40,6 +40,7 @@ static int _overlayTexWidth = 0;
|
||||
static int _overlayTexHeight = 0;
|
||||
static int _overlayWidth = 0;
|
||||
static int _overlayHeight = 0;
|
||||
static CGRect _overlayRect;
|
||||
static float _overlayPortraitRatio = 1.0f;
|
||||
|
||||
static int _needsScreenUpdate = 0;
|
||||
@ -628,9 +629,11 @@ static void setFilterModeForTexture(GLuint tex, GraphicsModes mode) {
|
||||
[self addSubview:[_keyboardView inputView]];
|
||||
[self addSubview: _keyboardView];
|
||||
[[_keyboardView inputView] becomeFirstResponder];
|
||||
_overlayPortraitRatio = (_overlayHeight * ratio) / _overlayWidth;
|
||||
overlayPortraitRatio = (_overlayHeight * ratio) / _overlayWidth;
|
||||
}
|
||||
|
||||
_overlayRect = CGRectMake(0, 0, _renderBufferWidth, _renderBufferHeight * overlayPortraitRatio);
|
||||
|
||||
_gameScreenVertCoords[0] = _heightOffset;
|
||||
_gameScreenVertCoords[1] = _widthOffset;
|
||||
_gameScreenVertCoords[2] = _visibleWidth - _heightOffset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user