mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 01:46:42 +00:00
WINCE: Fix mouse coordinate scaling when ARM scaler support is active
This commit is contained in:
parent
6db6d69eed
commit
e46f7dc1c0
@ -1160,16 +1160,16 @@ void WINCESdlGraphicsManager::adjustMouseEvent(const Common::Event &event) {
|
||||
if (!event.synthetic) {
|
||||
Common::Event newEvent(event);
|
||||
newEvent.synthetic = true;
|
||||
if (!_overlayVisible) {
|
||||
/*
|
||||
if (!_overlayVisible) {
|
||||
newEvent.mouse.x = newEvent.mouse.x * _scaleFactorXd / _scaleFactorXm;
|
||||
newEvent.mouse.y = newEvent.mouse.y * _scaleFactorYd / _scaleFactorYm;
|
||||
newEvent.mouse.x /= _videoMode.scaleFactor;
|
||||
newEvent.mouse.y /= _videoMode.scaleFactor;
|
||||
*/
|
||||
if (_videoMode.aspectRatioCorrection)
|
||||
newEvent.mouse.y = aspect2Real(newEvent.mouse.y);
|
||||
}
|
||||
*/
|
||||
g_system->getEventManager()->pushEvent(newEvent);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user