summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-10 14:51:28 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-10 14:52:11 -0700
commit6c7bf198fa165c971565f069081c603f068014b1 (patch)
tree28056d3d94f9e8ae3477c39102e4cd5c1bd71267 /src/graphics.h
parent7ec3ae46caf310cf83ece9e90e8e0f668179144b (diff)
downloadmana-6c7bf198fa165c971565f069081c603f068014b1.tar.gz
mana-6c7bf198fa165c971565f069081c603f068014b1.tar.bz2
mana-6c7bf198fa165c971565f069081c603f068014b1.tar.xz
mana-6c7bf198fa165c971565f069081c603f068014b1.zip
Improve look and utility of the SkillDialog
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h10
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.
*/