Fix for warning and fix for incorrect comment (#12944)

This commit is contained in:
MajorPainTheCactus 2021-09-06 00:16:01 +01:00 committed by GitHub
parent 36888612eb
commit 0ac542f1db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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) */