fixed behaviour with too big window sizes broken in rev. 1391

git-svn-id: svn://kolibrios.org@1424 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2010-02-28 16:06:46 +00:00
parent d6c7f0faca
commit 093a27f7ac
2 changed files with 10 additions and 2 deletions

View File

@ -10,11 +10,14 @@
xor cx, cx xor cx, cx
mov es, cx mov es, cx
inc cx
mov di, 0x9080 mov di, 0x9080
mov byte [es:di-1], cl mov byte [es:di-1], cl
mov byte [es:di], 80h
inc di
cmp [preboot_biosdisk], 1 cmp [preboot_biosdisk], 1
jnz bdde jnz bdde
mov dl, 80h mov dl, 81h
bdds: bdds:
mov ah, 15h mov ah, 15h
push cx dx di push cx dx di

View File

@ -1290,14 +1290,19 @@ window._.set_window_box: ;/////////////////////////////////////////////////////
add esp, -BOX.sizeof add esp, -BOX.sizeof
mov ebx, esp mov ebx, esp
if WDATA.box
lea esi, [edi + WDATA.box] lea esi, [edi + WDATA.box]
else
mov esi, edi ; optimization for WDATA.box = 0
end if
xchg eax, esi xchg eax, esi
mov ecx, BOX.sizeof mov ecx, BOX.sizeof
call memmove call memmove
xchg eax, esi xchg eax, esi
xchg ebx, esi xchg ebx, esi
call memmove call memmove
xchg ebx, esi mov eax, ebx
mov ebx, esi
call window._.check_window_position call window._.check_window_position
call window._.set_window_clientbox call window._.set_window_clientbox