forked from KolibriOS/kolibrios
save font settings for system color
git-svn-id: svn://kolibrios.org@6681 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
302276559f
commit
d6e2af9385
@ -89,26 +89,23 @@ macro edit_boxes_set_sys_color start,end,color_table
|
|||||||
mov ecx,((end-start)/ed_struc_size)
|
mov ecx,((end-start)/ed_struc_size)
|
||||||
mov esi,color_table
|
mov esi,color_table
|
||||||
@@:
|
@@:
|
||||||
mov eax,dword [esi+36] ;梥⠣à 䨪¨ ¢ ®ª¥ (à §¤¥«¨â¥«ìë¥ «¨¨¨ ¨ â.¯.)
|
mov eax,[esi+36]
|
||||||
mov ebx,dword [esi+20] ;梥â à ¡®ç¥© ®¡« á⨠®ª
|
mov ebx,[esi+20]
|
||||||
push dword eax
|
mov ed_focus_border_color,eax
|
||||||
pop dword ed_focus_border_color
|
shr eax,1
|
||||||
shr bh,1
|
shr ebx,1
|
||||||
shr bl,1
|
and eax,7F7F7Fh
|
||||||
shr ah,1
|
and ebx,7F7F7Fh
|
||||||
shr al,1
|
add eax,ebx
|
||||||
add ah,bh
|
mov ed_blur_border_color,eax
|
||||||
add al,bl
|
mov shift_color,eax
|
||||||
ror eax,16
|
mov eax,ed_text_color
|
||||||
ror ebx,16
|
mov ebx,[esi+32]
|
||||||
shr bl,1
|
shr eax,24
|
||||||
shr al,1
|
shl ebx,8
|
||||||
add al,bl
|
add eax,ebx
|
||||||
ror eax,16
|
ror eax,8
|
||||||
mov dword ed_blur_border_color,eax
|
mov ed_text_color,eax
|
||||||
mov dword shift_color,eax
|
|
||||||
push dword [esi+32] ;梥â ⥪áâ ¢ à ¡®ç¥© ®¡« á⨠®ª
|
|
||||||
pop dword ed_text_color
|
|
||||||
add edi,ed_struc_size
|
add edi,ed_struc_size
|
||||||
loop @b
|
loop @b
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user