Implemented scRGB colorspace and HDR support on macOS

This commit is contained in:
Sam Lantinga committed 2024-02-06 12:29:44 -08:00
1 parent 451dc41427
commit ba074acad4
24 files changed
+10547 -8010

No files matched your search

+3
View File
@@ -145,6 +145,8 @@ static void CreateRenderer(void)
renderer_name = info.name;
UpdateSDRWhiteLevel();
SDL_Log("HDR is %s\n", HDR_enabled ? "enabled" : "disabled");
}
static void NextRenderer( void )
@@ -745,6 +747,7 @@ static void loop(void)
OnMouseHeld(event.button.x, event.button.y);
}
} else if (event.type == SDL_EVENT_DISPLAY_HDR_STATE_CHANGED) {
SDL_Log("HDR %s\n", event.display.data1 ? "enabled" : "disabled");
UpdateSDRWhiteLevel();
} else if (event.type == SDL_EVENT_QUIT) {
done = 1;