mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-08 12:28:14 +00:00
Added HDR display properties and related event
Also added an HDR calibration stage to testcolorspace
This commit is contained in:
@@ -1666,6 +1666,12 @@ static void SDLTest_PrintEvent(const SDL_Event *event)
|
||||
event->display.displayID, (int)(scale * 100.0f));
|
||||
}
|
||||
break;
|
||||
case SDL_EVENT_DISPLAY_HDR_STATE_CHANGED:
|
||||
{
|
||||
SDL_Log("SDL EVENT: Display %" SDL_PRIu32 " HDR %s",
|
||||
event->display.displayID, event->display.data1 ? "enabled" : "disabled");
|
||||
}
|
||||
break;
|
||||
case SDL_EVENT_DISPLAY_MOVED:
|
||||
SDL_Log("SDL EVENT: Display %" SDL_PRIu32 " changed position",
|
||||
event->display.displayID);
|
||||
|
Reference in New Issue
Block a user