From 0ac542f1dbdac9df0fb68b96bc743958604c88e8 Mon Sep 17 00:00:00 2001 From: MajorPainTheCactus <89490246+MajorPainTheCactus@users.noreply.github.com> Date: Mon, 6 Sep 2021 00:16:01 +0100 Subject: [PATCH] Fix for warning and fix for incorrect comment (#12944) --- gfx/common/win32_common.c | 2 +- gfx/drivers/d3d_shaders/hdr_sm5.hlsl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/common/win32_common.c b/gfx/common/win32_common.c index da6bf5315b..61c246a829 100644 --- a/gfx/common/win32_common.c +++ b/gfx/common/win32_common.c @@ -2353,7 +2353,7 @@ HWND win32_get_window(void) bool win32_get_client_rect(RECT* rect) { - return GetWindowRect(main_window.hwnd, &rect); + return GetWindowRect(main_window.hwnd, rect); } void win32_window_reset(void) diff --git a/gfx/drivers/d3d_shaders/hdr_sm5.hlsl.h b/gfx/drivers/d3d_shaders/hdr_sm5.hlsl.h index 26f7d8fc64..97f31456a8 100644 --- a/gfx/drivers/d3d_shaders/hdr_sm5.hlsl.h +++ b/gfx/drivers/d3d_shaders/hdr_sm5.hlsl.h @@ -73,7 +73,7 @@ SRC( float4 Hdr(float4 sdr) { - sdr.xyz = pow(abs(sdr.xyz), 2.2f / global.contrast); /* Display Gamma - needs to be determined by calibration screen but should be in the 0.8 - 1.4 range */ + sdr.xyz = pow(abs(sdr.xyz), 2.2f / global.contrast ); /* Display Gamma - needs to be determined by calibration screen */ float luma = dot(sdr.xyz, float3(0.2126, 0.7152, 0.0722)); /* Rec BT.709 luma coefficients - https://en.wikipedia.org/wiki/Luma_(video) */