Skip to content

Commit

Permalink
COMMON: Add helper macro for printing rects
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover authored and sev- committed Sep 4, 2017
1 parent 9d42bea commit 110b4f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions common/rect.h
Expand Up @@ -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 {

/**
Expand Down
4 changes: 0 additions & 4 deletions engines/sci/graphics/helpers.h
Expand Up @@ -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;
Expand Down

0 comments on commit 110b4f0

Please sign in to comment.