aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/sdl/sdl-common.cpp8
-rw-r--r--backends/sdl/sdl-common.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp
index 4d9b7f3174..1bc2ec1416 100644
--- a/backends/sdl/sdl-common.cpp
+++ b/backends/sdl/sdl-common.cpp
@@ -1008,6 +1008,14 @@ void OSystem_SDL_Common::clear_overlay()
_forceFull = true;
}
+int16 OSystem_SDL_Common::get_height() {
+ return _screenHeight;
+}
+
+int16 OSystem_SDL_Common::get_width() {
+ return _screenWidth;
+}
+
void OSystem_SDL_Common::grab_overlay(int16 *buf, int pitch)
{
if (!_overlayVisible)
diff --git a/backends/sdl/sdl-common.h b/backends/sdl/sdl-common.h
index 05a7d9e9b0..dc07aeef89 100644
--- a/backends/sdl/sdl-common.h
+++ b/backends/sdl/sdl-common.h
@@ -109,6 +109,8 @@ public:
virtual void clear_overlay();
virtual void grab_overlay(int16 *buf, int pitch);
virtual void copy_rect_overlay(const int16 *buf, int pitch, int x, int y, int w, int h);
+ virtual int16 OSystem_SDL_Common::get_height();
+ virtual int16 OSystem_SDL_Common::get_width();
// Methods that convert RBG to/from colors suitable for the overlay.
virtual int16 RBGToColor(uint8 r, uint8 g, uint8 b);