From c32993d622be246742a01afbaf50e97d89523099 Mon Sep 17 00:00:00 2001 From: "Mihail Semenyako (mike.dld)" Date: Sun, 27 Aug 2006 17:42:37 +0000 Subject: [PATCH] Added: return client area coordinates and window state from 9th function git-svn-id: svn://kolibrios.org@138 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index c45f588c3c..cdaef97dbc 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -2584,6 +2584,22 @@ sys_cpuusage: mov eax,[eax] mov [ebx+40],ax + ; Window client area box + + mov esi,[esp] + shl esi,8 + add esi,0x80000+APPDATA.wnd_clientbox + lea edi,[ebx+44] + mov ecx,4 + rep movsd + + ; Window state + + mov esi,[esp] + shl esi,5 + add esi,window_data + WDATA.box + mov al,[esi+window_data+WDATA.fl_wstate] + mov [edi],al pop ebx pop eax