summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-16 14:29:42 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-16 14:29:42 +0000
commit51224bed60d5bed45b53e99b44bc1123a2a9cb68 (patch)
tree2acbf76139b6ef76d21aaf98ee09e326a59c4467 /src/graphics.h
parent96e61ed3ff7e41976ac8788363d6df8719037962 (diff)
downloadmana-51224bed60d5bed45b53e99b44bc1123a2a9cb68.tar.gz
mana-51224bed60d5bed45b53e99b44bc1123a2a9cb68.tar.bz2
mana-51224bed60d5bed45b53e99b44bc1123a2a9cb68.tar.xz
mana-51224bed60d5bed45b53e99b44bc1123a2a9cb68.zip
Made Image/SubImage being drawn by Graphics. Removed some redundant code.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/graphics.h b/src/graphics.h
index 5b57ff8b..662fc83c 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -32,8 +32,6 @@
#endif
#include "resources/image.h"
-extern SDL_Surface *screen;
-
/**
* 9 images defining a rectangle. 4 corners, 4 sides and a middle area. The
* topology is as follows:
@@ -74,6 +72,9 @@ class Graphics : public gcn::SDLGraphics {
*/
~Graphics();
+ void drawImage(Image *image, int x, int y);
+ void drawImagePattern(Image *image, int x, int y, int w, int h);
+
/**
* Draws a rectangle using images. 4 corner images, 4 side images and 1
* image for the inside.