aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2009-03-16 17:25:13 +0000
committerFilippos Karapetis2009-03-16 17:25:13 +0000
commit7cd1ac52319f33444a0ef750fbbb7ca3973cca61 (patch)
treee4f44f06e2f22fb9d6683a25de2542e742c001a4 /engines
parent0e8dfe09c98d2e326a6317f8826530a6f9913907 (diff)
downloadscummvm-rg350-7cd1ac52319f33444a0ef750fbbb7ca3973cca61.tar.gz
scummvm-rg350-7cd1ac52319f33444a0ef750fbbb7ca3973cca61.tar.bz2
scummvm-rg350-7cd1ac52319f33444a0ef750fbbb7ca3973cca61.zip
Changed the temporary helper functions to defines
svn-id: r39450
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/gfx/gfx_system.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/engines/sci/gfx/gfx_system.h b/engines/sci/gfx/gfx_system.h
index 13da623215..f5bbbb0c60 100644
--- a/engines/sci/gfx/gfx_system.h
+++ b/engines/sci/gfx/gfx_system.h
@@ -129,14 +129,9 @@ static inline rect_t gfx_rect(int x, int y, int width, int height) {
return rect;
}
-// Temporary helper functions to ease the transition from rect_t to Common::Rect
-static rect_t toSCIRect(Common::Rect in) {
- return gfx_rect(in.left, in.top, in.width(), in.height());
-}
-
-static Common::Rect toCommonRect(rect_t in) {
- return Common::Rect(in.x, in.y, in.x + in.width, in.y + in.height);
-}
+// Temporary helper defines to ease the transition from rect_t to Common::Rect
+#define toSCIRect(in) gfx_rect(in.left, in.top, in.width(), in.height())
+#define toCommonRect(in) Common::Rect(in.x, in.y, in.x + in.width, in.y + in.height)
#define GFX_PRINT_RECT(rect) (rect).x, (rect).y, (rect).width, (rect).height