mtdbg: fix draw issues

git-svn-id: svn://kolibrios.org@1269 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2009-11-12 21:41:51 +00:00
parent 167d3e9226
commit 6a2316b5f4

View File

@ -820,7 +820,18 @@ draw_disasm:
jc .nosymb jc .nosymb
mov ebx, [disasm_cur_str] mov ebx, [disasm_cur_str]
imul ebx, 10 imul ebx, 10
add ebx, (data_x_pos+6*2)*10000h + disasm_y_pos push ebx
lea ecx, [ebx+disasm_y_pos-1]
shl ecx, 16
mov cl, 11
mov edx, 0xFFFFFF
mov ebx, data_x_pos*10000h + data_x_size
push 13
pop eax
mcall
pop ebx
mov edi, edx
add ebx, (data_x_pos+6*2)*10000h+disasm_y_pos
mov edx, esi mov edx, esi
@@: lodsb @@: lodsb
test al, al test al, al
@ -828,9 +839,7 @@ draw_disasm:
mov byte [esi-1], ':' mov byte [esi-1], ':'
sub esi, edx sub esi, edx
mov ecx, 40000000h mov ecx, 40000000h
mov edi, 0xFFFFFF mov al, 4
push 4
pop eax
mcall mcall
mov byte [esi+edx-1], 0 mov byte [esi+edx-1], 0
lea esi, [esi*3] lea esi, [esi*3]
@ -943,6 +952,7 @@ draw_disasm:
sub ecx, [disasm_cur_str] sub ecx, [disasm_cur_str]
jz @f jz @f
imul ecx, 10 imul ecx, 10
inc ecx
mov eax, disasm_y_pos + disasm_y_size mov eax, disasm_y_pos + disasm_y_size
sub eax, ecx sub eax, ecx
shl eax, 16 shl eax, 16
@ -1039,7 +1049,7 @@ draw_window:
mcall mcall
mov ecx, (dump_y_pos+dump_y_size)*10000h + (disasm_y_pos-dump_y_pos-dump_y_size) mov ecx, (dump_y_pos+dump_y_size)*10000h + (disasm_y_pos-dump_y_pos-dump_y_size)
mcall mcall
mov ecx, (disasm_y_pos+disasm_y_size)*10000h + (messages_y_pos-disasm_y_pos-disasm_y_size) mov ecx, (disasm_y_pos-1+disasm_y_size)*10000h + (messages_y_pos-disasm_y_pos+1-disasm_y_size)
mcall mcall
mov ecx, (messages_y_pos+messages_y_size)*10000h + (wnd_y_size-messages_y_pos-messages_y_size-4) mov ecx, (messages_y_pos+messages_y_size)*10000h + (wnd_y_size-messages_y_pos-messages_y_size-4)
mcall mcall