diff options
author | Max Horn | 2010-07-20 07:11:17 +0000 |
---|---|---|
committer | Max Horn | 2010-07-20 07:11:17 +0000 |
commit | 0c2d90f090ab439d3b53ca6aaab5027d527716ba (patch) | |
tree | cde5eecacc756661656907cf976295c1f1c96def /backends/graphics/opengl/opengl-graphics.cpp | |
parent | 5b626533cdbc2b9a8cb0b478d8e93ece852de1b9 (diff) | |
download | scummvm-rg350-0c2d90f090ab439d3b53ca6aaab5027d527716ba.tar.gz scummvm-rg350-0c2d90f090ab439d3b53ca6aaab5027d527716ba.tar.bz2 scummvm-rg350-0c2d90f090ab439d3b53ca6aaab5027d527716ba.zip |
Fix warning about float->int conversion
svn-id: r51051
Diffstat (limited to 'backends/graphics/opengl/opengl-graphics.cpp')
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index 4b0591e420..1d378a4d11 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -637,9 +637,9 @@ void OpenGLGraphicsManager::adjustMouseEvent(const Common::Event &event) { // newEvent.mouse.y = aspect2Real(newEvent.mouse.y); } if (_videoMode.hardwareWidth != _videoMode.overlayWidth) - newEvent.mouse.x /= (float)_videoMode.hardwareWidth / _videoMode.overlayWidth; + newEvent.mouse.x = newEvent.mouse.x * _videoMode.overlayWidth / _videoMode.hardwareWidth; if (_videoMode.hardwareHeight != _videoMode.overlayHeight) - newEvent.mouse.y /= (float)_videoMode.hardwareHeight / _videoMode.overlayHeight; + newEvent.mouse.y = newEvent.mouse.y * _videoMode.overlayHeight / _videoMode.hardwareHeight; g_system->getEventManager()->pushEvent(newEvent); } } |