mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-19 09:48:15 +00:00
Review latest PR formating
This commit is contained in:
18
src/core.c
18
src/core.c
@@ -3330,18 +3330,12 @@ static bool InitGraphicsDevice(int width, int height)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(PLATFORM_DESKTOP)
|
#if defined(PLATFORM_DESKTOP)
|
||||||
// NOTE: GLFW 3.4+ defers initialization of the Joystick subsystem on the
|
// NOTE: GLFW 3.4+ defers initialization of the Joystick subsystem on the first call to any Joystick related functions.
|
||||||
// first call to any Joystick related functions. Forcing this
|
// Forcing this initialization here avoids doing it on `PollInputEvents` called by `EndDrawing` after first frame has been just drawn.
|
||||||
// initialization here avoids doing it on `PollInputEvents` called by
|
// The initialization will still happen and possible delays still occur, but before the window is shown, which is a nicer experience.
|
||||||
// `EndDrawing` after first frame has been just drawn. The initialization
|
// REF: https://github.com/raysan5/raylib/issues/1554
|
||||||
// will still happen and possible delays still occur, but before the window
|
if (MAX_GAMEPADS > 0) glfwSetJoystickCallback(NULL);
|
||||||
// is shown, which is a nicer experience.
|
#endif
|
||||||
// Ref: https://github.com/raysan5/raylib/issues/1554
|
|
||||||
if (MAX_GAMEPADS > 0)
|
|
||||||
{
|
|
||||||
glfwSetJoystickCallback(NULL);
|
|
||||||
}
|
|
||||||
#endif // PLATFORM_DESKTOP
|
|
||||||
|
|
||||||
if (CORE.Window.fullscreen)
|
if (CORE.Window.fullscreen)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user