From 089caa64c76435e6744d158baf2a99565c387727 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Fri, 30 Sep 2011 12:05:09 +0000 Subject: [PATCH] c-- library fix git-svn-id: svn://kolibrios.org@2250 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/clicks/trunk/clicks.c-- | 2 +- programs/games/clicks/trunk/lib/kolibri.h-- | 3 +-- programs/network/htmlv/browser/HTMLv.c-- | 2 +- programs/network/htmlv/lib/kolibri.h-- | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/programs/games/clicks/trunk/clicks.c-- b/programs/games/clicks/trunk/clicks.c-- index ffab22837d..99d809be93 100644 --- a/programs/games/clicks/trunk/clicks.c-- +++ b/programs/games/clicks/trunk/clicks.c-- @@ -214,7 +214,7 @@ void main() case evReDraw: DefineAndDrawWindow(400,276,177,201+GetSkinWidth(),0x74,0x10B2B4BF,0,0,"Just Clicks v0.8"); DefineButton(150,-18,18,18,255+BT_HIDE+BT_NOFRAME,0); //ª­®¯®çª  § ªàëâ¨ï :] - Form.GetInfo(SelfInfo); + GetProcessInfo(#Form, SelfInfo); IF (Form.height==GetSkinWidth()+3) BREAK; sc.get(); DrawBar(0,168,168,29,sc.work); //¯ ­¥«ìª  á­¨§ã diff --git a/programs/games/clicks/trunk/lib/kolibri.h-- b/programs/games/clicks/trunk/lib/kolibri.h-- index c3e345c924..ae8d48c1d5 100644 --- a/programs/games/clicks/trunk/lib/kolibri.h-- +++ b/programs/games/clicks/trunk/lib/kolibri.h-- @@ -32,10 +32,9 @@ struct proc_info{ #define SelfInfo -1 }; -void proc_info::GetInfo(dword ECX) +void GetProcessInfo(dword EBX, ECX) { EAX = 9; - EBX = #use_cpu; $int 0x40 } diff --git a/programs/network/htmlv/browser/HTMLv.c-- b/programs/network/htmlv/browser/HTMLv.c-- index 7b00f9813f..896c79e0c8 100644 --- a/programs/network/htmlv/browser/HTMLv.c-- +++ b/programs/network/htmlv/browser/HTMLv.c-- @@ -121,7 +121,7 @@ void Draw_Window() DefineAndDrawWindow(215,100,640,480,0x73,0x00E4DFE1,0,0,0); WindowRedrawStatus(2); - Form.GetInfo(SelfInfo); + GetProcessInfo(#Form, SelfInfo); IF (Form.height==GetSkinWidth()+3) //åñëè ñâåðíóòî â çàãîëîâîê, íè÷åãî íå ðèñóåì { DrawTitle(#header); diff --git a/programs/network/htmlv/lib/kolibri.h-- b/programs/network/htmlv/lib/kolibri.h-- index d071d1b170..191457397a 100644 --- a/programs/network/htmlv/lib/kolibri.h-- +++ b/programs/network/htmlv/lib/kolibri.h-- @@ -74,13 +74,13 @@ struct proc_info{ dword work_left,work_top,work_width,work_height; char status_window; void GetInfo(dword ECX); + byte reserved[1024-71]; #define SelfInfo -1 }; -void proc_info::GetInfo(dword ECX) +void GetProcessInfo(dword EBX, ECX) { EAX = 9; - EBX = #use_cpu; $int 0x40 }