COMMON: Remove kFeatureHiDPI from OSystem and use getHiDPIScreenFactor instead
This commit is contained in:
parent
4ad54446f8
commit
abf782c670
6 changed files with 5 additions and 15 deletions
|
@ -228,9 +228,9 @@ bool SdlGraphicsManager::notifyMousePosition(Common::Point &mouse) {
|
|||
|
||||
int showCursor = SDL_DISABLE;
|
||||
// DPI aware scaling to mouse position
|
||||
uint scale = getFeatureState(BaseBackend::kFeatureHiDPI) ? 2 : 1;
|
||||
mouse.x *= scale;
|
||||
mouse.y *= scale;
|
||||
float scale = getHiDPIScreenFactor();
|
||||
mouse.x = (int)(mouse.x * scale + 0.5f);
|
||||
mouse.y = (int)(mouse.y * scale + 0.5f);
|
||||
bool valid = true;
|
||||
if (_activeArea.drawRect.contains(mouse)) {
|
||||
_cursorLastInActiveArea = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue