diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-16 19:26:59 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-16 19:26:59 +0000 |
commit | a6db4d8004da5ad985a5ff26c0c01976a5618449 (patch) | |
tree | 5ed3dea6a28222de87840a4d1966338098123993 /src/graphics.h | |
parent | f4aedad02e8994f89a4137d175dba2666a7005bc (diff) | |
download | mana-a6db4d8004da5ad985a5ff26c0c01976a5618449.tar.gz mana-a6db4d8004da5ad985a5ff26c0c01976a5618449.tar.bz2 mana-a6db4d8004da5ad985a5ff26c0c01976a5618449.tar.xz mana-a6db4d8004da5ad985a5ff26c0c01976a5618449.zip |
Updated changelog, got rid of remaining extern SDL_Surface *screen cases,
fixed double free and cleaned up a bit.
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 12 |
1 files changed, 11 insertions, 1 deletions
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 |