forked from KolibriOS/kolibrios
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:
parent
334f7721de
commit
d37931f10a
@ -1407,6 +1407,13 @@ draw_num_text:
|
||||
; edx length
|
||||
; 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 ecx,65
|
||||
sub ecx,eax
|
||||
@ -1820,6 +1827,14 @@ readmousepos:
|
||||
shl ebx,16
|
||||
mov bx, word [esi-twdw+WDATA.box.top]
|
||||
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
|
||||
ret
|
||||
nowr:
|
||||
|
@ -1,4 +1,4 @@
|
||||
FASM=./fasm
|
||||
FASM=fasm
|
||||
KSRC=kernel.asm
|
||||
KOUT=kernel.mnt
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user