244,173 → 244,9 |
mov edx,0x40000000+141 |
jmp draw_left_select_disk_button.1 |
;------------------------------------------------------------------------------ |
draw_device_button: |
mov edi,device_present |
mov edx,120 |
mov bx,[left_panel_x.start_x] |
mov cx,[left_panel_y.start_y] |
mov eax,[left_panel_x] |
mov [temp_panel_end],eax |
mov [temp_counter],0 |
call .draw |
mov edx,130 |
mov bx,[right_panel_x.start_x] |
mov cx,[right_panel_y.start_y] |
mov eax,[right_panel_x] |
mov [temp_panel_end],eax |
mov [temp_counter],1 |
;-------------------------------------- |
.draw: |
shl ebx,16 |
mov bx,25 |
sub cx,30 |
shl ecx,16 |
mov cx,12 |
mov eax,8 |
mov esi,0xaa00 |
cmp [edi],byte 1 |
jne @f |
|
mov ebp,read_folder_device_name.rd |
call .draw_1 |
;-------------------------------------- |
@@: |
inc edx |
cmp [edi+1],byte 1 |
jne @f |
|
mov ebp,read_folder_device_name.fd |
call .draw_1 |
;-------------------------------------- |
@@: |
inc edx |
cmp [edi+2],byte 1 |
jne @f |
|
mov ebp,read_folder_device_name.hd0 |
call .draw_1 |
;-------------------------------------- |
@@: |
inc edx |
cmp [edi+3],byte 1 |
jne @f |
|
mov ebp,read_folder_device_name.hd1 |
call .draw_1 |
;-------------------------------------- |
@@: |
inc edx |
cmp [edi+4],byte 1 |
jne @f |
|
mov ebp,read_folder_device_name.hd2 |
call .draw_1 |
;-------------------------------------- |
@@: |
inc edx |
cmp [edi+5],byte 1 |
jne @f |
|
mov ebp,read_folder_device_name.hd3 |
call .draw_1 |
;-------------------------------------- |
@@: |
inc edx |
cmp [edi+6],byte 1 |
jne @f |
|
mov ebp,read_folder_device_name.cd0 |
call .draw_1 |
;-------------------------------------- |
@@: |
inc edx |
cmp [edi+7],byte 1 |
jne @f |
|
mov ebp,read_folder_device_name.cd1 |
call .draw_1 |
;-------------------------------------- |
@@: |
inc edx |
cmp [edi+8],byte 1 |
jne @f |
|
mov ebp,read_folder_device_name.cd2 |
call .draw_1 |
;-------------------------------------- |
@@: |
inc edx |
cmp [edi+9],byte 1 |
jne @f |
|
mov ebp,read_folder_device_name.cd3 |
call .draw_1 |
;-------------------------------------- |
@@: |
push ebx |
mov ebx,[temp_panel_end] |
mov ax,bx |
shr ebx,16 |
add eax,ebx |
pop ebx |
ror ebx,16 |
sub ax,bx |
rol ebx,16 |
mov bx,ax |
add ecx,1 |
add ebx,1 |
mcall 13,,,0xcccccc |
cmp [temp_counter],0 |
je @f |
|
mov ax,bx |
shr ebx,16 |
add bx,ax |
mov eax,[window_width] |
sub eax,4 |
sub ax,bx |
cmp eax,0 |
jbe @f |
|
shl ebx,16 |
mov bx,ax |
mov ax,[right_panel_y.size_y] |
add ax,[right_panel_y.start_y] |
shr ecx,16 |
sub ax,cx |
shl ecx,16 |
mov cx,ax |
mcall 13,,,0xcccccc |
ret |
;-------------------------------------- |
.draw_1: |
mcall |
pusha |
mov eax,ebx |
inc eax |
shl eax,16 |
add ebx,eax |
mov bx,1 |
inc ecx |
mcall 13,,,0xcccccc |
popa |
pusha |
mov edx,ebp |
shr ecx,16 |
mov bx,cx |
add ebx,2 shl 16 +3 |
mcall 4,,0x90000000 |
sub ebx,1 shl 16 + 1 |
mcall ,,0x90ffffff |
popa |
add ebx,27 shl 16 |
;-------------------------------------- |
@@: |
ret |
;draw_ATAPI_tray_control: |
; ret |
;------------------------------------------------------------------------------ |
draw_ATAPI_tray_control: |
ret |
;------------------------------------------------------------------------------ |
calc_max_panel_line: |
xor eax,eax |
mov ax,[left_panel_y.size_y] |