From a6db4d8004da5ad985a5ff26c0c01976a5618449 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 16 Jul 2005 19:26:59 +0000 Subject: Updated changelog, got rid of remaining extern SDL_Surface *screen cases, fixed double free and cleaned up a bit. --- src/graphics.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/graphics.h') diff --git a/src/graphics.h b/src/graphics.h index 662fc83c..26b83692 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -65,7 +65,7 @@ class Graphics : public gcn::SDLGraphics { /** * Constructor. */ - Graphics(); + Graphics(SDL_Surface *screen); /** * Destructor. @@ -110,6 +110,16 @@ class Graphics : public gcn::SDLGraphics { * Returns the height of the screen. */ int getHeight(); + + /** + * Sets a new screen pointer. This is necessary after switching screen + * modes, which probably should happen by this class instead of in the + * setup window. + */ + void setScreen(SDL_Surface *screen); + + private: + SDL_Surface *mScreen; }; #endif -- cgit v1.2.3-70-g09d2