diff options
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/platform/iphone/iphone_video.m | 17 | 
1 files changed, 11 insertions, 6 deletions
| diff --git a/backends/platform/iphone/iphone_video.m b/backends/platform/iphone/iphone_video.m index 821d3de634..4fdb820f70 100644 --- a/backends/platform/iphone/iphone_video.m +++ b/backends/platform/iphone/iphone_video.m @@ -178,13 +178,18 @@ const char* iPhone_getDocumentsDir() {  }  bool getLocalMouseCoords(CGPoint *point) { -	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) { -			return false; -	} +	if (_overlayIsEnabled) { +		point->x = point->x / _overlayHeight; +		point->y = point->y / _overlayWidth; +	} 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) { +				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 - _screenRect.origin.x) / _screenRect.size.width; +		point->y = (point->y - _screenRect.origin.y) / _screenRect.size.height; +	}  	return true;  } | 
