mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 11:44:16 +08:00
add inline dump_rect
This commit is contained in:
+9
-1
@@ -60,12 +60,20 @@ extern "C" {
|
||||
|
||||
static inline void dump_region (const CLIPRGN* rgn, const char* name)
|
||||
{
|
||||
_WRN_PRINTF("rcBound of %s: (%d, %d, %d, %d); size (%d x %d)\n", name,
|
||||
_WRN_PRINTF("rcBound of %s (%p): (%d, %d, %d, %d); size (%d x %d)\n",
|
||||
name, rgn,
|
||||
rgn->rcBound.left, rgn->rcBound.top,
|
||||
rgn->rcBound.right, rgn->rcBound.bottom,
|
||||
RECTW(rgn->rcBound), RECTH(rgn->rcBound));
|
||||
}
|
||||
|
||||
static inline void dump_rect (const RECT* rect, const char* name)
|
||||
{
|
||||
_WRN_PRINTF("rect of %s: (%d, %d, %d, %d); size (%d x %d)\n", name,
|
||||
rect->left, rect->top, rect->right, rect->bottom,
|
||||
RECTWP(rect), RECTHP(rect));
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
Reference in New Issue
Block a user