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
This commit is contained in:
		
							parent
							
								
									fdedfd628b
								
							
						
					
					
						commit
						b31cf6b61e
					
				@ -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)
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user