From ea3b5f1721c060d538bc2189475bdaf6af07cc7f Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Thu, 19 Apr 2012 19:11:56 +0000 Subject: [PATCH] TASK PANEL - safe correction of the background color. git-svn-id: svn://kolibrios.org@2634 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/panel/trunk/drawwind.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/programs/system/panel/trunk/drawwind.inc b/programs/system/panel/trunk/drawwind.inc index d586dcf500..8ba5c83c20 100644 --- a/programs/system/panel/trunk/drawwind.inc +++ b/programs/system/panel/trunk/drawwind.inc @@ -11,8 +11,13 @@ draw_window: mcall 48,3,system_colours,10*4 mov eax, [system_colours+4*6] - sub eax, 0x101010 - mov [wcolor], eax +; sub eax, 0x101010 +; mov [wcolor], eax + + mov edx,[system_colours+4*6] + mov eax,COLOR_CHANGE_MAGNITUDE + call subtract_color_change_magnitude + mov [wcolor], edx mcall 14 ; get screen max x & max y