diff --git a/programs/system/docky/trunk/DATA.INC b/programs/system/docky/trunk/DATA.INC index edd07c6562..3bc75a9130 100644 --- a/programs/system/docky/trunk/DATA.INC +++ b/programs/system/docky/trunk/DATA.INC @@ -21,6 +21,8 @@ ini_data: db "location", 0 .fsize_name: db "fsize", 0 + .ashow_name: + db "ashow", 0 ;------------------------------------------------------------------------------- load_lib_start: lib1 l_libs img.name, \ diff --git a/programs/system/docky/trunk/MEMORY.INC b/programs/system/docky/trunk/MEMORY.INC index 73d7e77a33..c3e4e54b84 100644 --- a/programs/system/docky/trunk/MEMORY.INC +++ b/programs/system/docky/trunk/MEMORY.INC @@ -135,6 +135,8 @@ dock_items: rd 1 .fsize: rb 1 + .ashow: + rb 1 ;------------------------------------------------------------------------------- buf_128: rb 128 diff --git a/programs/system/docky/trunk/docky.asm b/programs/system/docky/trunk/docky.asm index 413e443d68..750c5d37a5 100644 --- a/programs/system/docky/trunk/docky.asm +++ b/programs/system/docky/trunk/docky.asm @@ -34,6 +34,8 @@ main: mov [dock_items.location], eax invoke ini.get_int, ini_data.file_name, ini_data.settings_name, ini_data.fsize_name, 0 mov [dock_items.fsize], eax + invoke ini.get_int, ini_data.file_name, ini_data.settings_name, ini_data.ashow_name, 0 + mov [dock_items.ashow], eax invoke ini.sections, ini_data.file_name, sections_callback @@ -265,6 +267,24 @@ main: mov eax, [win.y_hdn] mov [win.y], eax + + cmp byte[dock_items.ashow],1 + jne .not_ashow + + mov eax, [win.width_opn] + mov [win.width], eax + + mov eax, [win.x_opn] + mov [win.x], eax + + mov eax, [win.height_opn] + mov [win.height], eax + + mov eax, [win.y_opn] + mov [win.y], eax + + .not_ashow: + ;------------------------------------------------------------------------------- ; ==== START ==== @@ -531,8 +551,12 @@ event_mouse: mov eax, [win.y_opn] mov [win.y], eax + + cmp byte[dock_items.ashow],1 + je .change_nothing mcall 67, [win.x], [win.y], [win.width], [win.height] + .change_nothing: call DRAW_WINDOW call DRAW_SELECTION jmp main_loop @@ -549,6 +573,9 @@ wnd_hide: mov byte[win.state], 0 mov byte[win.button_index], -1 + cmp byte[dock_items.ashow],1 + je .do_no_hide + mov eax, [win.width_hdn] mov [win.width], eax @@ -563,6 +590,7 @@ wnd_hide: mcall 67, [win.x], [win.y], [win.width], [win.height] + .do_no_hide: call DRAW_WINDOW jmp main_loop ;-------------------------------------------------------------------------------