Fxed and simplified double-click handling in Listboxes (Skins window, Text window, Factory window). Double-clicking a font in Text window 'accepts' the rendering and closes the window.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1736 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -1706,13 +1706,10 @@ void Button_Brush_Factory(void)
|
||||
|
||||
switch (clicked_button)
|
||||
{
|
||||
case 4:
|
||||
if (last_selected_item == scriptlist->List_start + scriptlist->Cursor_position)
|
||||
{
|
||||
// Double click
|
||||
clicked_button=5;
|
||||
break;
|
||||
}
|
||||
case 2: // Double-click an entry in script list
|
||||
clicked_button=5;
|
||||
break;
|
||||
case 4: // Select script
|
||||
last_selected_item = scriptlist->List_start + scriptlist->Cursor_position;
|
||||
Hide_cursor();
|
||||
Draw_script_information(Get_item_by_index(&Scripts_selector,
|
||||
|
||||
Reference in New Issue
Block a user