From e7fdf567fe53e45c00564dc1b5244e81686e89e6 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 18 Jan 2005 13:48:07 +0000 Subject: Fixed pattern drawing and focus on Ok/Select buttons for first dialogs. --- src/resources/image.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/resources/image.h') 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 true if the image was blitted properly + * false 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 true if the image was blitted properly * false otherwise. @@ -136,6 +147,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 true if drawing was succesful -- cgit v1.2.3-70-g09d2