1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-29 21:48:52 -05:00

Fix joystick test hat drawing

This commit is contained in:
Camilla Löwy 2017-10-03 00:41:55 +02:00
parent 94ee10e655
commit 56ecd62f58

View File

@ -98,7 +98,7 @@ static void hat_widget(struct nk_context* nk, unsigned char state)
struct nk_rect area; struct nk_rect area;
struct nk_vec2 center; struct nk_vec2 center;
if (nk_widget(&area, nk) != NK_WIDGET_VALID) if (nk_widget(&area, nk) == NK_WIDGET_INVALID)
return; return;
center = nk_vec2(area.x + area.w / 2.f, area.y + area.h / 2.f); center = nk_vec2(area.x + area.w / 2.f, area.y + area.h / 2.f);