BACKENDS: SDL: Do not scale mouse position for LoDPI modes

This commit is contained in:
Eugene Sandulenko 2021-04-11 01:18:44 +02:00
parent 020da412c5
commit 708caaa8fa

View File

@ -209,8 +209,7 @@ bool SdlGraphicsManager::notifyMousePosition(Common::Point &mouse) {
int showCursor = SDL_DISABLE;
// DPI aware scaling to mouse position
uint scale;
getDpiScalingFactor(&scale);
uint scale = getFeatureState(BaseBackend::kFeatureHiDPI) ? 2 : 1;
mouse.x *= scale;
mouse.y *= scale;
bool valid = true;