OPENGL: Remove redundant check in adjustMousePosition.

This commit is contained in:
Johannes Schickel 2012-02-15 00:14:47 +01:00
parent 8faf016478
commit 56971f11d1

View file

@ -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) {