diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-18 13:48:07 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-18 13:48:07 +0000 |
commit | e7fdf567fe53e45c00564dc1b5244e81686e89e6 (patch) | |
tree | 29f6bddb541c50d5f3c6b1cd24067d3c6775c869 /src/resources/image.h | |
parent | 39ea054b214612ae7d56a01884904dcb63181598 (diff) | |
download | Mana-e7fdf567fe53e45c00564dc1b5244e81686e89e6.tar.gz Mana-e7fdf567fe53e45c00564dc1b5244e81686e89e6.tar.bz2 Mana-e7fdf567fe53e45c00564dc1b5244e81686e89e6.tar.xz Mana-e7fdf567fe53e45c00564dc1b5244e81686e89e6.zip |
Fixed pattern drawing and focus on Ok/Select buttons for first dialogs.
Diffstat (limited to 'src/resources/image.h')
-rw-r--r-- | src/resources/image.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/resources/image.h b/src/resources/image.h index d5c98c5d..1c2b58cf 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -83,7 +83,18 @@ class Image : public Resource virtual Image* getScaledInstance(int width, int height); /** - * Blits the internal image onto the screen. + * Blits the image onto the screen. + * + * @return <code>true</code> if the image was blitted properly + * <code>false</code> otherwise. + */ + virtual bool draw(SDL_Surface *screen, + int srcX, int srcY, + int dstX, int dstY, + int width, int height); + + /** + * Blits the image onto the screen. * * @return <code>true</code> if the image was blitted properly * <code>false</code> otherwise. @@ -137,6 +148,12 @@ class SubImage : public Image Image* getSubImage(int x, int y, int width, int height); /** + * Draws this image. + */ + bool draw(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. |