mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-04 04:54:42 +00:00
Added SDL_EVENT_DISPLAY_USABLE_BOUNDS_CHANGED
Fixes https://github.com/libsdl-org/SDL/issues/12785
This commit is contained in:
@@ -1626,6 +1626,14 @@ void SDLTest_PrintEvent(const SDL_Event *event)
|
||||
event->display.displayID, (int)(scale * 100.0f));
|
||||
}
|
||||
break;
|
||||
case SDL_EVENT_DISPLAY_USABLE_BOUNDS_CHANGED:
|
||||
{
|
||||
SDL_Rect bounds;
|
||||
SDL_GetDisplayUsableBounds(event->display.displayID, &bounds);
|
||||
SDL_Log("SDL EVENT: Display %" SDL_PRIu32 " changed usable bounds to %dx%d at %d,%d",
|
||||
event->display.displayID, bounds.w, bounds.h, bounds.x, bounds.y);
|
||||
}
|
||||
break;
|
||||
case SDL_EVENT_DISPLAY_DESKTOP_MODE_CHANGED:
|
||||
SDL_Log("SDL EVENT: Display %" SDL_PRIu32 " desktop mode changed to %" SDL_PRIs32 "x%" SDL_PRIs32,
|
||||
event->display.displayID, event->display.data1, event->display.data2);
|
||||
|
||||
Reference in New Issue
Block a user