From b31cf6b61e4f7b669489bfd15ee11299404e66a5 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Tue, 18 Sep 2012 21:53:41 +0000 Subject: [PATCH] Lua inputbox() : Fix an issue with label lines: putting a label at line N was disabling the Nth control button on the screen. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1997 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/factory.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/factory.c b/src/factory.c index e7f30ffc..6f7bbdf9 100644 --- a/src/factory.c +++ b/src/factory.c @@ -840,7 +840,6 @@ int L_InputBox(lua_State* L) CONTROL_INPUT_MINUS = 0x0400, CONTROL_INPUT_PLUS = 0x0500, CONTROL_CHECKBOX = 0x0600, - CONTROL_LABEL = 0x0700, CONTROL_VALUE_MASK = 0x00FF, CONTROL_TYPE_MASK = 0xFF00 }; @@ -938,7 +937,6 @@ int L_InputBox(lua_State* L) { // Label Print_in_window_limited(12,22+setting*17,label[setting],max_label_length+12,MC_Black,MC_Light); - control[Window_nb_buttons] = CONTROL_LABEL; } else if (min_value[setting]==0 && max_value[setting]==1 && decimal_places[setting]<=0) {