aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/sdl
diff options
context:
space:
mode:
authorCameron Cawley2019-11-01 11:39:46 +0000
committerAntoniou Athanasios2019-11-01 13:39:46 +0200
commit177d709909808313eee720ce76465cf99f909c5e (patch)
tree6d11f166342ddea46deb1634b106d010b4ab5181 /backends/graphics/sdl
parent5d0206b9c297837fddb038601bdfb42b0fcb8016 (diff)
downloadscummvm-rg350-177d709909808313eee720ce76465cf99f909c5e.tar.gz
scummvm-rg350-177d709909808313eee720ce76465cf99f909c5e.tar.bz2
scummvm-rg350-177d709909808313eee720ce76465cf99f909c5e.zip
OPENGL: Implement high DPI support on Android (#1895)
* OPENGL: Implement high DPI support on Android * PSP2: Fix build
Diffstat (limited to 'backends/graphics/sdl')
-rw-r--r--backends/graphics/sdl/sdl-graphics.cpp2
-rw-r--r--backends/graphics/sdl/sdl-graphics.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp
index 453c60c66f..0d310a4174 100644
--- a/backends/graphics/sdl/sdl-graphics.cpp
+++ b/backends/graphics/sdl/sdl-graphics.cpp
@@ -230,7 +230,7 @@ void SdlGraphicsManager::setSystemMousePosition(const int x, const int y) {
}
}
-void SdlGraphicsManager::handleResizeImpl(const int width, const int height) {
+void SdlGraphicsManager::handleResizeImpl(const int width, const int height, const int xdpi, const int ydpi) {
_eventSource->resetKeyboardEmulation(width - 1, height - 1);
_forceRedraw = true;
}
diff --git a/backends/graphics/sdl/sdl-graphics.h b/backends/graphics/sdl/sdl-graphics.h
index 77c8d5d528..d67557be2b 100644
--- a/backends/graphics/sdl/sdl-graphics.h
+++ b/backends/graphics/sdl/sdl-graphics.h
@@ -163,7 +163,7 @@ protected:
virtual void setSystemMousePosition(const int x, const int y) override;
- virtual void handleResizeImpl(const int width, const int height) override;
+ virtual void handleResizeImpl(const int width, const int height, const int xdpi, const int ydpi) override;
#if SDL_VERSION_ATLEAST(2, 0, 0)
public: