Skip to content

Commit a05aca5

Browse files
meyraud705flibitijibibo
authored andcommitted
Fix condition for setting HDR properties
1 parent ee8f286 commit a05aca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video/SDL_video.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ float SDL_GetDisplayContentScale(SDL_DisplayID displayID)
11711171

11721172
void SDL_SetWindowHDRProperties(SDL_Window *window, const SDL_HDROutputProperties *HDR, bool send_event)
11731173
{
1174-
if (window->HDR.HDR_headroom != HDR->HDR_headroom || window->HDR.SDR_white_level != window->HDR.SDR_white_level) {
1174+
if (window->HDR.HDR_headroom != HDR->HDR_headroom || window->HDR.SDR_white_level != HDR->SDR_white_level) {
11751175
SDL_PropertiesID window_props = SDL_GetWindowProperties(window);
11761176

11771177
SDL_SetFloatProperty(window_props, SDL_PROP_WINDOW_HDR_HEADROOM_FLOAT, SDL_max(HDR->HDR_headroom, 1.0f));

0 commit comments

Comments
 (0)