diff options
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/graphics.h b/src/graphics.h index 591b4166..2b38608f 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -173,6 +173,16 @@ class Graphics : public gcn::SDLGraphics const ImageRect &imgRect); /** + * Draws a rectangle using images. 4 corner images, 4 side images and 1 + * image for the inside. + */ + inline void drawImageRect(const gcn::Rectangle &area, + const ImageRect &imgRect) + { + drawImageRect(area.x, area.y, area.width, area.height, imgRect); + } + + /** * Updates the screen. This is done by either copying the buffer to the * screen or swapping pages. */ |