diff options
author | Max Horn | 2009-03-17 16:07:18 +0000 |
---|---|---|
committer | Max Horn | 2009-03-17 16:07:18 +0000 |
commit | 3c0d117dd82f6a4131fa799c18900147cea0ad0d (patch) | |
tree | 02bf733239cd68a58f29502224a463c8e98ec931 | |
parent | 81cfb9ffd560e65e1befb6729f69154a1ceef875 (diff) | |
download | scummvm-rg350-3c0d117dd82f6a4131fa799c18900147cea0ad0d.tar.gz scummvm-rg350-3c0d117dd82f6a4131fa799c18900147cea0ad0d.tar.bz2 scummvm-rg350-3c0d117dd82f6a4131fa799c18900147cea0ad0d.zip |
SCI: fix warning
svn-id: r39483
-rw-r--r-- | engines/sci/gfx/gfx_system.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/sci/gfx/gfx_system.h b/engines/sci/gfx/gfx_system.h index f5bbbb0c60..6a00d02f5f 100644 --- a/engines/sci/gfx/gfx_system.h +++ b/engines/sci/gfx/gfx_system.h @@ -129,9 +129,14 @@ static inline rect_t gfx_rect(int x, int y, int width, int height) { return rect; } -// 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) +// Temporary helper functions to ease the transition from rect_t to Common::Rect +static inline rect_t toSCIRect(Common::Rect in) { + return gfx_rect(in.left, in.top, in.width(), in.height()); +} + +static inline Common::Rect toCommonRect(rect_t in) { + return 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 |