mirror of https://github.com/raysan5/raylib
Solved issue #912
This commit is contained in:
parent
f501d42e47
commit
bc3983a3dd
|
@ -2419,8 +2419,6 @@ static bool InitGraphicsDevice(int width, int height)
|
|||
{
|
||||
screenWidth = width; // User desired width
|
||||
screenHeight = height; // User desired height
|
||||
currentWidth = width;
|
||||
currentHeight = height;
|
||||
|
||||
screenScaling = MatrixIdentity(); // No draw scaling required by default
|
||||
|
||||
|
@ -2459,6 +2457,9 @@ static bool InitGraphicsDevice(int width, int height)
|
|||
if (screenHeight <= 0) screenHeight = displayHeight;
|
||||
#endif // PLATFORM_DESKTOP
|
||||
|
||||
currentWidth = screenWidth;
|
||||
currentHeight = screenHeight;
|
||||
|
||||
#if defined(PLATFORM_WEB)
|
||||
displayWidth = screenWidth;
|
||||
displayHeight = screenHeight;
|
||||
|
@ -2533,7 +2534,7 @@ static bool InitGraphicsDevice(int width, int height)
|
|||
if (fullscreen)
|
||||
{
|
||||
// Obtain recommended displayWidth/displayHeight from a valid videomode for the monitor
|
||||
int count;
|
||||
int count = 0;
|
||||
const GLFWvidmode *modes = glfwGetVideoModes(glfwGetPrimaryMonitor(), &count);
|
||||
|
||||
// Get closest video mode to desired screenWidth/screenHeight
|
||||
|
|
Loading…
Reference in New Issue