mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-01 11:49:17 -05:00
spaces not tabs
This commit is contained in:
@ -1753,12 +1753,12 @@ static void WindowSizeCallback(GLFWwindow *window, int width, int height)
|
||||
|
||||
if (IsWindowFullscreen()) return;
|
||||
|
||||
// if we are doing automatic DPI scaling, then the "screen" size is divided by the window scale
|
||||
if (IsWindowState(FLAG_WINDOW_HIGHDPI))
|
||||
{
|
||||
width = (int)(width / GetWindowScaleDPI().x);
|
||||
height = (int)(height / GetWindowScaleDPI().y);
|
||||
}
|
||||
// if we are doing automatic DPI scaling, then the "screen" size is divided by the window scale
|
||||
if (IsWindowState(FLAG_WINDOW_HIGHDPI))
|
||||
{
|
||||
width = (int)(width / GetWindowScaleDPI().x);
|
||||
height = (int)(height / GetWindowScaleDPI().y);
|
||||
}
|
||||
|
||||
// Set current screen size
|
||||
CORE.Window.screen.width = width;
|
||||
|
||||
Reference in New Issue
Block a user