Fixed client-relative behavior of functions 37.1 and 47

git-svn-id: svn://kolibrios.org@137 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Mihail Semenyako (mike.dld) 2006-08-26 19:08:10 +00:00
parent 334f7721de
commit d37931f10a
2 changed files with 16 additions and 1 deletions

View File

@ -1407,6 +1407,13 @@ draw_num_text:
; edx length ; edx length
; edi 1 force ; edi 1 force
mov edi,[0x3000]
shl edi,8
add ax,word[edi+0x80000+APPDATA.wnd_clientbox.top]
rol eax,16
add ax,word[edi+0x80000+APPDATA.wnd_clientbox.left]
rol eax,16
mov edx,eax mov edx,eax
mov ecx,65 mov ecx,65
sub ecx,eax sub ecx,eax
@ -1820,6 +1827,14 @@ readmousepos:
shl ebx,16 shl ebx,16
mov bx, word [esi-twdw+WDATA.box.top] mov bx, word [esi-twdw+WDATA.box.top]
sub eax,ebx sub eax,ebx
mov edi,[0x3000]
shl edi,8
sub ax,word[edi+0x80000+APPDATA.wnd_clientbox.top]
rol eax,16
sub ax,word[edi+0x80000+APPDATA.wnd_clientbox.left]
rol eax,16
mov [esp+36],eax mov [esp+36],eax
ret ret
nowr: nowr:

View File

@ -1,4 +1,4 @@
FASM=./fasm FASM=fasm
KSRC=kernel.asm KSRC=kernel.asm
KOUT=kernel.mnt KOUT=kernel.mnt