aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorJames Brown2002-12-28 04:51:34 +0000
committerJames Brown2002-12-28 04:51:34 +0000
commit92c8e4ef1ee3bb500685e7eceebcf3df29c8520c (patch)
tree7dad3852d2db379e716eda9092597eee22289c9d /backends
parentae5b30df3d67644f341a30997de5192fed8bcbdc (diff)
downloadscummvm-rg350-92c8e4ef1ee3bb500685e7eceebcf3df29c8520c.tar.gz
scummvm-rg350-92c8e4ef1ee3bb500685e7eceebcf3df29c8520c.tar.bz2
scummvm-rg350-92c8e4ef1ee3bb500685e7eceebcf3df29c8520c.zip
Fix NewGui for higher resolutions (eg, CMI)
svn-id: r6216
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);