From e5fc65ee685a59394b5f9a7bbd92bab5ab9830d8 Mon Sep 17 00:00:00 2001 From: 0CodErr <0CodErr@kolibrios.org> Date: Wed, 27 Sep 2017 16:43:50 +0000 Subject: [PATCH] fix macro edit_boxes_set_sys_color git-svn-id: svn://kolibrios.org@7019 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../libraries/box_lib/trunk/box_lib.mac | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/programs/develop/libraries/box_lib/trunk/box_lib.mac b/programs/develop/libraries/box_lib/trunk/box_lib.mac index 93fe77d48d..9c82a36b02 100644 --- a/programs/develop/libraries/box_lib/trunk/box_lib.mac +++ b/programs/develop/libraries/box_lib/trunk/box_lib.mac @@ -88,24 +88,19 @@ macro edit_boxes_set_sys_color start,end,color_table mov edi,start mov ecx,((end-start)/ed_struc_size) mov esi,color_table -@@: - mov eax,[esi+36] - mov ebx,[esi+20] + mov eax,[esi+system_colors.work_graph] + mov ebx,[esi+system_colors.work] mov ed_focus_border_color,eax shr eax,1 shr ebx,1 and eax,7F7F7Fh and ebx,7F7F7Fh - add eax,ebx + add eax,ebx +@@: mov ed_blur_border_color,eax - mov shift_color,eax - mov eax,ed_text_color - mov ebx,[esi+32] - shr eax,24 - shl ebx,8 - add eax,ebx - ror eax,8 - mov ed_text_color,eax + mov shift_color,0A4C4E4h + mov ed_text_color,0 + mov ed_color,0FFFFFFh add edi,ed_struc_size loop @b }