mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-02 16:08:32 +00:00
note (#1797)
This commit is contained in:
@@ -3548,7 +3548,7 @@ static bool InitGraphicsDevice(int width, int height)
|
|||||||
CORE.Window.display.width = mode->width;
|
CORE.Window.display.width = mode->width;
|
||||||
CORE.Window.display.height = mode->height;
|
CORE.Window.display.height = mode->height;
|
||||||
|
|
||||||
// Screen size security check
|
// Set screen width/height to the display width/height if they are 0
|
||||||
if (CORE.Window.screen.width == 0) CORE.Window.screen.width = CORE.Window.display.width;
|
if (CORE.Window.screen.width == 0) CORE.Window.screen.width = CORE.Window.display.width;
|
||||||
if (CORE.Window.screen.height == 0) CORE.Window.screen.height = CORE.Window.display.height;
|
if (CORE.Window.screen.height == 0) CORE.Window.screen.height = CORE.Window.display.height;
|
||||||
#endif // PLATFORM_DESKTOP
|
#endif // PLATFORM_DESKTOP
|
||||||
|
Reference in New Issue
Block a user