mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 21:30:57 +00:00
fix joysticks.c
joysticks controls was not being drawn visibly
This commit is contained in:
parent
4188c263e3
commit
86b17c9dff
@ -126,8 +126,8 @@ static void draw_joysticks(GLFWwindow* window)
|
|||||||
if (j->present)
|
if (j->present)
|
||||||
{
|
{
|
||||||
draw_joystick(j,
|
draw_joystick(j,
|
||||||
0, i * height / joystick_count,
|
0, i * height / (sizeof(joysticks) / sizeof(Joystick)),
|
||||||
width, height / joystick_count);
|
width, height / (sizeof(joysticks) / sizeof(Joystick)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user