From 110b4f09916d366574e5eb62114e68b68510a7a4 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sat, 2 Sep 2017 16:08:35 -0500 Subject: [PATCH] COMMON: Add helper macro for printing rects --- common/rect.h | 2 ++ engines/sci/graphics/helpers.h | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/rect.h b/common/rect.h index e6534e55d33..6c4292c7aff 100644 --- a/common/rect.h +++ b/common/rect.h @@ -27,6 +27,8 @@ #include "common/util.h" #include "common/debug.h" +#define PRINT_RECT(x) (x).left,(x).top,(x).right,(x).bottom + namespace Common { /** diff --git a/engines/sci/graphics/helpers.h b/engines/sci/graphics/helpers.h index 52699c62422..38da280701e 100644 --- a/engines/sci/graphics/helpers.h +++ b/engines/sci/graphics/helpers.h @@ -52,10 +52,6 @@ typedef int16 TextAlignment; #define PORTS_FIRSTWINDOWID 2 #define PORTS_FIRSTSCRIPTWINDOWID 3 -#ifdef ENABLE_SCI32 -#define PRINT_RECT(x) (x).left,(x).top,(x).right,(x).bottom -#endif - struct Port { uint16 id; int16 top, left;