From 1839f86cca971b57b5d7198d943be23c3239eed3 Mon Sep 17 00:00:00 2001 From: Matlo Date: Tue, 29 Jul 2014 12:20:25 +0200 Subject: [PATCH] #269 --- core/display.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/display.c b/core/display.c index dd9f46a9..73d9c0c8 100644 --- a/core/display.c +++ b/core/display.c @@ -406,11 +406,10 @@ void display_run(e_controller_type type, int axis[]) snprintf(label, sizeof(label), "%8s: %4d", control_get_name(type, i), axis[i]); mvwaddstr(wbuttons, 1 + d, 1, label); d++; - } - wnoutrefresh(wbuttons); - if(d == BUTTON_Y_L - 3) - { - break; + if(d == BUTTON_Y_L - 3) + { + break; + } } } memset(label, ' ', sizeof(label)); @@ -420,6 +419,7 @@ void display_run(e_controller_type type, int axis[]) mvwaddstr(wbuttons, 1 + i, 1, label); } last_button_nb = d; + wnoutrefresh(wbuttons); mvwaddch(lstick, cross[0][1], cross[0][0], ' '); cross[0][0] = STICK_X_L / 2 + (double)axis[rel_axis_lstick_x] / controller_get_max_signed(adapter_get(0)->type, rel_axis_lstick_x) * (STICK_X_L / 2 - 1);