[Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.22,1.23 sdl-common.h,1.11,1.12
James Brown
ender at users.sourceforge.net
Fri Dec 27 20:52:02 CET 2002
Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1:/tmp/cvs-serv15544/backends/sdl
Modified Files:
sdl-common.cpp sdl-common.h
Log Message:
Fix NewGui for higher resolutions (eg, CMI)
Index: sdl-common.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- sdl-common.cpp 25 Dec 2002 21:02:21 -0000 1.22
+++ sdl-common.cpp 28 Dec 2002 04:51:34 -0000 1.23
@@ -1008,6 +1008,14 @@
_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)
Index: sdl-common.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- sdl-common.h 25 Dec 2002 12:53:47 -0000 1.11
+++ sdl-common.h 28 Dec 2002 04:51:34 -0000 1.12
@@ -109,6 +109,8 @@
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);
More information about the Scummvm-git-logs
mailing list