Pārlūkot izejas kodu

Review latest PR formating

pull/1573/head
raysan5 pirms 3 gadiem
vecāks
revīzija
67206a5415
1 mainītis faili ar 6 papildinājumiem un 12 dzēšanām
  1. +6
    -12
      src/core.c

+ 6
- 12
src/core.c Parādīt failu

@ -3330,18 +3330,12 @@ static bool InitGraphicsDevice(int width, int height)
}
#if defined(PLATFORM_DESKTOP)
// NOTE: GLFW 3.4+ defers initialization of the Joystick subsystem on the
// first call to any Joystick related functions. Forcing this
// initialization here avoids doing it on `PollInputEvents` called by
// `EndDrawing` after first frame has been just drawn. The initialization
// will still happen and possible delays still occur, but before the window
// is shown, which is a nicer experience.
// Ref: https://github.com/raysan5/raylib/issues/1554
if (MAX_GAMEPADS > 0)
{
glfwSetJoystickCallback(NULL);
}
#endif // PLATFORM_DESKTOP
// NOTE: GLFW 3.4+ defers initialization of the Joystick subsystem on the first call to any Joystick related functions.
// Forcing this initialization here avoids doing it on `PollInputEvents` called by `EndDrawing` after first frame has been just drawn.
// The initialization will still happen and possible delays still occur, but before the window is shown, which is a nicer experience.
// REF: https://github.com/raysan5/raylib/issues/1554
if (MAX_GAMEPADS > 0) glfwSetJoystickCallback(NULL);
#endif
if (CORE.Window.fullscreen)
{

Notiek ielāde…
Atcelt
Saglabāt