forked from KolibriOS/kolibrios
Fix to saving window position code
git-svn-id: svn://kolibrios.org@57 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
f150fc890b
commit
f1f3efb4ba
@ -1323,14 +1323,14 @@ checkwindows:
|
|||||||
cmp eax,[edi+0]
|
cmp eax,[edi+0]
|
||||||
jb nnepx
|
jb nnepx
|
||||||
sub eax,[edi+0]
|
sub eax,[edi+0]
|
||||||
cmp eax,[edx+0x90+8]
|
cmp eax,32 ; [edx+0x90+8]
|
||||||
jge nnepx2
|
jge nnepx2
|
||||||
mov eax,[edx+0x90+8]
|
mov eax,32 ; [edx+0x90+8]
|
||||||
nnepx2:
|
nnepx2:
|
||||||
mov [npxe],eax
|
mov [npxe],eax
|
||||||
nnepx:
|
nnepx:
|
||||||
|
|
||||||
call get_titlebar_height
|
call get_rolledup_height
|
||||||
mov ebx,eax
|
mov ebx,eax
|
||||||
movzx eax,word [0xfb0c]
|
movzx eax,word [0xfb0c]
|
||||||
cmp eax,[edi+4]
|
cmp eax,[edi+4]
|
||||||
@ -1385,11 +1385,14 @@ checkwindows:
|
|||||||
; <IP 28.08.2004>
|
; <IP 28.08.2004>
|
||||||
push esi edi ecx
|
push esi edi ecx
|
||||||
mov esi,edi
|
mov esi,edi
|
||||||
sub edi,window_data
|
mov ecx,2
|
||||||
|
test [edi+WDATA.fl_wstate],WSTATE_ROLLEDUP or WSTATE_MAXIMIZED
|
||||||
|
jnz @f
|
||||||
|
add ecx,2
|
||||||
|
@@: sub edi,window_data
|
||||||
shr edi,5
|
shr edi,5
|
||||||
shl edi,8
|
shl edi,8
|
||||||
add edi,0x80000+0x90
|
add edi,0x80000+0x90
|
||||||
mov ecx,4
|
|
||||||
cld
|
cld
|
||||||
rep movsd
|
rep movsd
|
||||||
pop ecx edi esi
|
pop ecx edi esi
|
||||||
|
Loading…
Reference in New Issue
Block a user