winemac: Add missing event to dbgstr_event().

This commit is contained in:
Brendan Shanks 2023-05-18 12:18:13 -07:00 committed by Alexandre Julliard
parent 3d9d52dbfc
commit a4f19d1879

View file

@ -80,6 +80,7 @@ static const char *dbgstr_event(int type)
"STATUS_ITEM_MOUSE_MOVE",
"WINDOW_BROUGHT_FORWARD",
"WINDOW_CLOSE_REQUESTED",
"WINDOW_DID_MINIMIZE",
"WINDOW_DID_UNMINIMIZE",
"WINDOW_DRAG_BEGIN",
"WINDOW_DRAG_END",
@ -91,6 +92,7 @@ static const char *dbgstr_event(int type)
"WINDOW_RESIZE_ENDED",
"WINDOW_RESTORE_REQUESTED",
};
C_ASSERT(ARRAYSIZE(event_names) == NUM_EVENT_TYPES);
if (0 <= type && type < NUM_EVENT_TYPES) return event_names[type];
return wine_dbg_sprintf("Unknown event %d", type);