summaryrefslogtreecommitdiff
path: root/SharedGraphics/Size.h
diff options
context:
space:
mode:
Diffstat (limited to 'SharedGraphics/Size.h')
-rw-r--r--SharedGraphics/Size.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/SharedGraphics/Size.h b/SharedGraphics/Size.h
index 4e5a4ea811..87f2c5b088 100644
--- a/SharedGraphics/Size.h
+++ b/SharedGraphics/Size.h
@@ -13,6 +13,8 @@ public:
int width() const { return m_width; }
int height() const { return m_height; }
+ int area() const { return width() * height(); }
+
void set_width(int w) { m_width = w; }
void set_height(int h) { m_height = h; }