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_vec2 center;
if (nk_widget(&area, nk) != NK_WIDGET_VALID)
if (nk_widget(&area, nk) == NK_WIDGET_INVALID)
return;
center = nk_vec2(area.x + area.w / 2.f, area.y + area.h / 2.f);