use raylib standard indentation...

This commit is contained in:
Yan Pujante 2023-11-12 11:20:56 -08:00
parent e014ce32c1
commit ad2e032a25

View File

@ -1003,7 +1003,8 @@ static void AdjustFrameBufferSize(int fbWidth, int fbHeight)
fbHeight = (int) ((float) fbHeight * scale); fbHeight = (int) ((float) fbHeight * scale);
// Screen scaling matrix is required in case desired screen area is different from display area // Screen scaling matrix is required in case desired screen area is different from display area
CORE.Window.screenScale = MatrixScale((float)fbWidth/(float)CORE.Window.screen.width, (float)fbHeight/(float)CORE.Window.screen.height, 1.0f); CORE.Window.screenScale = MatrixScale((float) fbWidth / (float) CORE.Window.screen.width,
(float) fbHeight / (float) CORE.Window.screen.height, 1.0f);
SetMouseScale(1.0f / scale, 1.0f / scale); SetMouseScale(1.0f / scale, 1.0f / scale);
@ -1407,7 +1408,10 @@ static bool IsHighDPIAware()
static float GetDevicePixelRatio() static float GetDevicePixelRatio()
{ {
if(IsHighDPIAware()) if(IsHighDPIAware())
return (float) EM_ASM_DOUBLE({ console.log("dpr: " + devicePixelRatio); return (typeof devicePixelRatio == 'number' && devicePixelRatio) || 1.0; }); return (float) EM_ASM_DOUBLE({
console.log("dpr: " + devicePixelRatio);
return (typeof devicePixelRatio == 'number' && devicePixelRatio) || 1.0;
});
else else
return 1.0f; return 1.0f;
} }