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);
|
||||
|
||||
|
|
@ -1352,9 +1353,9 @@ void InstallModuleJSAPI()
|
|||
void FullscreenCallback(bool isFullscreen)
|
||||
{
|
||||
TRACELOG(LOG_INFO, "FullscreenCallback(%s)", isFullscreen ? "true" : "false");
|
||||
if (isFullscreen)
|
||||
if(isFullscreen)
|
||||
{
|
||||
if ((CORE.Window.flags & FLAG_WINDOW_RESIZABLE) == 0)
|
||||
if((CORE.Window.flags & FLAG_WINDOW_RESIZABLE) == 0)
|
||||
{
|
||||
if(IsHighDPIAware())
|
||||
{
|
||||
|
|
@ -1383,7 +1384,7 @@ void FullscreenCallback(bool isFullscreen)
|
|||
void SetHighDPIAware(bool flag)
|
||||
{
|
||||
TRACELOG(LOG_INFO, "SetHighDPIAware(%s)", flag ? "true" : "false");
|
||||
if (platform.isHighDPIAware != flag)
|
||||
if(platform.isHighDPIAware != flag)
|
||||
{
|
||||
platform.isHighDPIAware = flag;
|
||||
if(CORE.Window.fullscreen)
|
||||
|
|
@ -1406,8 +1407,11 @@ static bool IsHighDPIAware()
|
|||
// GetDevicePixelRatio
|
||||
static float GetDevicePixelRatio()
|
||||
{
|
||||
if (IsHighDPIAware())
|
||||
return (float) EM_ASM_DOUBLE({ console.log("dpr: " + devicePixelRatio); return (typeof devicePixelRatio == 'number' && devicePixelRatio) || 1.0; });
|
||||
if(IsHighDPIAware())
|
||||
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