From 86b17c9dff1183d769fa8d643c36ee0cf58144b6 Mon Sep 17 00:00:00 2001 From: David Park Date: Mon, 2 Feb 2015 12:57:50 -0500 Subject: [PATCH] fix joysticks.c joysticks controls was not being drawn visibly --- tests/joysticks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/joysticks.c b/tests/joysticks.c index a3a5cd7e7..488e507f2 100644 --- a/tests/joysticks.c +++ b/tests/joysticks.c @@ -126,8 +126,8 @@ static void draw_joysticks(GLFWwindow* window) if (j->present) { draw_joystick(j, - 0, i * height / joystick_count, - width, height / joystick_count); + 0, i * height / (sizeof(joysticks) / sizeof(Joystick)), + width, height / (sizeof(joysticks) / sizeof(Joystick))); } } }