mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 03:23:46 +08:00
add dump_gal_rect and dump_surface
This commit is contained in:
@@ -84,6 +84,13 @@ dump_rect (const RECT* rect, const char* name)
|
||||
RECTWP(rect), RECTHP(rect));
|
||||
}
|
||||
|
||||
static inline void
|
||||
dump_gal_rect (const GAL_Rect* rect, const char* name)
|
||||
{
|
||||
_MG_PRINTF("rect of %s: (%d, %d), (%d X %d)\n", name,
|
||||
rect->x, rect->y, rect->w, rect->h);
|
||||
}
|
||||
|
||||
static inline void
|
||||
dump_window (HWND hwnd, const char* name)
|
||||
{
|
||||
@@ -371,6 +378,16 @@ dump_window_details (HWND hwnd, const char* name)
|
||||
_MG_PRINTF ("End of info for handle (%p) of %s", hwnd, name);
|
||||
}
|
||||
|
||||
static inline void
|
||||
dump_surface (GAL_Surface* surface, const char* name)
|
||||
{
|
||||
_MG_PRINTF ("Surface RGBA masks for %s: %x, %x, %x, %x\n", name,
|
||||
surface->format->Rmask,
|
||||
surface->format->Gmask,
|
||||
surface->format->Bmask,
|
||||
surface->format->Amask);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
Reference in New Issue
Block a user