[Scummvm-cvs-logs] CVS: scummvm/common system.h,1.42,1.43
Max Horn
fingolfin at users.sourceforge.net
Fri Sep 19 17:55:10 CEST 2003
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv22592
Modified Files:
system.h
Log Message:
added explicit virtual destructor; added API which makes it potentially possible to have an overlay with a different size than than the 'normal' screen (e.g. if the game runs at 320x200 and a 2x scaler runs, the overlay could be made 640x400 big, if the backend supports that)
Index: system.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/system.h,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- system.h 6 Sep 2003 20:21:54 -0000 1.42
+++ system.h 20 Sep 2003 00:47:18 -0000 1.43
@@ -45,7 +45,6 @@
/**
* The types of events backends can generate.
- * @todo Add events for quit request, and screen size change.
* @see Event
*/
enum EventCode {
@@ -112,6 +111,9 @@
};
+ /** Virtual destructor */
+ virtual ~OSystem() {}
+
/** @name Graphics */
//@{
@@ -335,6 +337,8 @@
virtual void clear_overlay() = 0;
virtual void grab_overlay(NewGuiColor *buf, int pitch) = 0;
virtual void copy_rect_overlay(const NewGuiColor *buf, int pitch, int x, int y, int w, int h) = 0;
+ virtual int16 get_overlay_height() { return get_height(); }
+ virtual int16 get_overlay_width() { return get_width(); }
//@}
More information about the Scummvm-git-logs
mailing list