OPENGL: Remove redundant check in adjustMousePosition.
This commit is contained in:
parent
8faf016478
commit
56971f11d1
1 changed files with 6 additions and 8 deletions
|
@ -1276,15 +1276,13 @@ void OpenGLGraphicsManager::adjustMousePosition(int16 &x, int16 &y) {
|
|||
if (_overlayVisible)
|
||||
return;
|
||||
|
||||
if (!_overlayVisible) {
|
||||
x -= _displayX;
|
||||
y -= _displayY;
|
||||
x -= _displayX;
|
||||
y -= _displayY;
|
||||
|
||||
if (_displayWidth != _videoMode.screenWidth)
|
||||
x = x * _videoMode.screenWidth / _displayWidth;
|
||||
if (_displayHeight != _videoMode.screenHeight)
|
||||
y = y * _videoMode.screenHeight / _displayHeight;
|
||||
}
|
||||
if (_displayWidth != _videoMode.screenWidth)
|
||||
x = x * _videoMode.screenWidth / _displayWidth;
|
||||
if (_displayHeight != _videoMode.screenHeight)
|
||||
y = y * _videoMode.screenHeight / _displayHeight;
|
||||
}
|
||||
|
||||
bool OpenGLGraphicsManager::saveScreenshot(const char *filename) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue