summaryrefslogtreecommitdiff
path: root/src/resources/image.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/resources/image.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/resources/image.h')
-rw-r--r--src/resources/image.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index 7fe83a66..9151a869 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -89,7 +89,7 @@ class Image : public Resource
* <code>false</code> otherwise.
*/
virtual bool
- draw(SDL_Surface *screen,
+ draw_deprecated(SDL_Surface *screen,
int srcX, int srcY,
int dstX, int dstY,
int width, int height);
@@ -101,13 +101,7 @@ class Image : public Resource
* <code>false</code> otherwise.
*/
virtual bool
- draw(SDL_Surface *screen, int x, int y);
-
- /**
- * Does a pattern fill on the given area.
- */
- virtual void
- drawPattern(SDL_Surface *screen, int x, int y, int w, int h);
+ draw_deprecated(SDL_Surface *screen, int x, int y);
/**
* Sets the alpha value of this image.
@@ -193,20 +187,11 @@ class SubImage : public Image
* Draws this image.
*/
bool
- draw(SDL_Surface *screen,
+ draw_deprecated(SDL_Surface *screen,
int srcX, int srcY,
int dstX, int dstY,
int width, int height);
- /**
- * Draws the clipped image onto the screen.
- *
- * @return <code>true</code> if drawing was succesful
- * <code>false</code> otherwise.
- */
- bool
- draw(SDL_Surface *screen, int x, int y);
-
private:
Image *parent;
SDL_Rect rect;