--- common/rect.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/common/rect.h b/common/rect.h index a9c1b08..f8bacf1 100644 --- a/common/rect.h +++ b/common/rect.h @@ -21,6 +21,7 @@ #include <spice/macros.h> #include "draw.h" +#include "log.h" SPICE_BEGIN_DECLS @@ -85,6 +86,11 @@ static INLINE int rect_get_area(const SpiceRect *r) return (r->right - r->left) * (r->bottom - r->top); } +static INLINE void rect_debug(const SpiceRect *r) +{ + spice_debug("(%d, %d) (%d, %d)", r->left, r->top, r->right, r->bottom); +} + SPICE_END_DECLS #ifdef __cplusplus @@ -134,6 +140,11 @@ static inline int rect_get_area(const SpiceRect& r) return rect_get_area(&r); } +static inline void rect_debug(const SpiceRect &r) +{ + rect_debug(&r); +} + #endif /* __cplusplus */ #endif -- 1.7.7.6 _______________________________________________ Spice-devel mailing list Spice-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/spice-devel