use raylib standard indentation...
This commit is contained in:
parent
e014ce32c1
commit
ad2e032a25
|
|
@ -1003,7 +1003,8 @@ static void AdjustFrameBufferSize(int fbWidth, int fbHeight)
|
|||
fbHeight = (int) ((float) fbHeight * scale);
|
||||
|
||||
// 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);
|
||||
|
||||
|
|
@ -1407,7 +1408,10 @@ static bool IsHighDPIAware()
|
|||
static float GetDevicePixelRatio()
|
||||
{
|
||||
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
|
||||
return 1.0f;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user