[Scummvm-cvs-logs] CVS: scummvm/gui newgui.cpp,1.59,1.60
Max Horn
fingolfin at users.sourceforge.net
Fri Sep 19 17:55:11 CEST 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/common system.h,1.42,1.43
- Next message: [Scummvm-cvs-logs] CVS: scummvm/base gameDetector.cpp,1.3,1.4 gameDetector.h,1.2,1.3 main.cpp,1.3,1.4 plugins.cpp,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv22659
Modified Files:
newgui.cpp
Log Message:
make use of the new get_overlay_height/get_overlay_width
Index: newgui.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/newgui.cpp,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- newgui.cpp 6 Sep 2003 20:21:54 -0000 1.59
+++ newgui.cpp 20 Sep 2003 00:47:56 -0000 1.60
@@ -224,15 +224,18 @@
#pragma mark -
void NewGui::saveState() {
- int sys_height = _system->get_height();
- int sys_width = _system->get_width();
// Backup old cursor
_oldCursorMode = _system->show_mouse(true);
+ // Enable the overlay
_system->show_overlay();
- // TODO - add getHeight & getWidth methods to OSystem.
- _screen = (NewGuiColor*)calloc(sys_width*sys_height,sizeof(NewGuiColor));
+
+ // Create a screen buffer for the overlay data, and fill it with
+ // whatever is visible on the screen rught now.
+ int sys_height = _system->get_overlay_height();
+ int sys_width = _system->get_overlay_width();
+ _screen = (NewGuiColor*)calloc(sys_width * sys_height, sizeof(NewGuiColor));
_screenPitch = sys_width;
_system->grab_overlay(_screen, _screenPitch);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/common system.h,1.42,1.43
- Next message: [Scummvm-cvs-logs] CVS: scummvm/base gameDetector.cpp,1.3,1.4 gameDetector.h,1.2,1.3 main.cpp,1.3,1.4 plugins.cpp,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list