forked from KolibriOS/kolibrios
Box_Lib - return with actual fb_selected_BDVK_adress after any call of FileBrowser
git-svn-id: svn://kolibrios.org@3811 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
684e14f673
commit
8b98e71db3
@ -103,6 +103,7 @@ fb_draw_panel:
|
|||||||
call fb_calc_folder_sysdata
|
call fb_calc_folder_sysdata
|
||||||
call fb_draw_panel_selection
|
call fb_draw_panel_selection
|
||||||
call fb_draw_folder_data
|
call fb_draw_folder_data
|
||||||
|
call fb_prepare_selected_BDVK_adress
|
||||||
file_browser_exit
|
file_browser_exit
|
||||||
;---------------------------------------------------------------------
|
;---------------------------------------------------------------------
|
||||||
fb_draw_panel_1:
|
fb_draw_panel_1:
|
||||||
@ -1076,6 +1077,7 @@ fb_mouse:
|
|||||||
mov fb_mouse_keys_delta,eax
|
mov fb_mouse_keys_delta,eax
|
||||||
;-------------------------------------------------------
|
;-------------------------------------------------------
|
||||||
.exit_fb:
|
.exit_fb:
|
||||||
|
call fb_prepare_selected_BDVK_adress
|
||||||
file_browser_exit
|
file_browser_exit
|
||||||
;-------------------------------------------------------
|
;-------------------------------------------------------
|
||||||
.mark_mouse:
|
.mark_mouse:
|
||||||
@ -1092,17 +1094,6 @@ file_browser_exit
|
|||||||
mov eax,3
|
mov eax,3
|
||||||
mov fb_mouse_keys_delta,eax
|
mov fb_mouse_keys_delta,eax
|
||||||
xor eax,eax
|
xor eax,eax
|
||||||
mov ax,fb_start_draw_cursor_line
|
|
||||||
xor ebx,ebx
|
|
||||||
mov bx,fb_line_size_y
|
|
||||||
xor edx,edx
|
|
||||||
div ebx
|
|
||||||
add eax,fb_start_draw_line
|
|
||||||
imul eax,304
|
|
||||||
add eax,32
|
|
||||||
add eax,fb_folder_data
|
|
||||||
mov fb_selected_BDVK_adress,eax
|
|
||||||
xor eax,eax
|
|
||||||
mov fb_max_name_temp_size,eax
|
mov fb_max_name_temp_size,eax
|
||||||
ret
|
ret
|
||||||
;-------------------------------------------------------
|
;-------------------------------------------------------
|
||||||
@ -1116,6 +1107,21 @@ file_browser_exit
|
|||||||
ret
|
ret
|
||||||
;*****************************************************************************
|
;*****************************************************************************
|
||||||
;*****************************************************************************
|
;*****************************************************************************
|
||||||
|
fb_prepare_selected_BDVK_adress:
|
||||||
|
xor eax,eax
|
||||||
|
mov ax,fb_start_draw_cursor_line
|
||||||
|
xor ebx,ebx
|
||||||
|
mov bx,fb_line_size_y
|
||||||
|
xor edx,edx
|
||||||
|
div ebx
|
||||||
|
add eax,fb_start_draw_line
|
||||||
|
imul eax,304
|
||||||
|
add eax,32
|
||||||
|
add eax,fb_folder_data
|
||||||
|
mov fb_selected_BDVK_adress,eax
|
||||||
|
ret
|
||||||
|
;*****************************************************************************
|
||||||
|
;*****************************************************************************
|
||||||
; key event
|
; key event
|
||||||
; 1 - arrow down
|
; 1 - arrow down
|
||||||
; 2 - arrow up
|
; 2 - arrow up
|
||||||
@ -1391,6 +1397,7 @@ fb_key:
|
|||||||
jmp .mark_all_1
|
jmp .mark_all_1
|
||||||
;-------------------------------------------------------
|
;-------------------------------------------------------
|
||||||
.exit_fb:
|
.exit_fb:
|
||||||
|
call fb_prepare_selected_BDVK_adress
|
||||||
file_browser_exit
|
file_browser_exit
|
||||||
;-------------------------------------------------------
|
;-------------------------------------------------------
|
||||||
fb_key_table:
|
fb_key_table:
|
||||||
|
Loading…
Reference in New Issue
Block a user