From d37931f10ab5fcd5d0d56d41a6c5aad1d4240d34 Mon Sep 17 00:00:00 2001 From: "Mihail Semenyako (mike.dld)" Date: Sat, 26 Aug 2006 19:08:10 +0000 Subject: [PATCH] Fixed client-relative behavior of functions 37.1 and 47 git-svn-id: svn://kolibrios.org@137 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 15 +++++++++++++++ kernel/trunk/makefile | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index e64176d996..c45f588c3c 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -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: diff --git a/kernel/trunk/makefile b/kernel/trunk/makefile index 1a25e60965..d07df1b9c9 100644 --- a/kernel/trunk/makefile +++ b/kernel/trunk/makefile @@ -1,4 +1,4 @@ -FASM=./fasm +FASM=fasm KSRC=kernel.asm KOUT=kernel.mnt