Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2629 → Rev 2630

/programs/system/panel/trunk/drawbutt.inc
128,19 → 128,28
; edx = processed color
sub dl,al
jae @f
 
xor dl,dl
;--------------------------------------
align 4
@@:
ror edx,8
ror eax,8
sub dl,al
jae @f
 
xor dl,dl
;--------------------------------------
align 4
@@:
ror edx,8
ror eax,8
sub dl,al
jae @f
 
xor dl,dl
;--------------------------------------
align 4
@@:
rol edx,16
ret
154,23 → 163,33
; edx = processed color
add dl,al
jae @f
 
mov dl,0xff
;--------------------------------------
align 4
@@:
ror edx,8
ror eax,8
add dl,al
jae @f
 
mov dl,0xff
;--------------------------------------
align 4
@@:
ror edx,8
ror eax,8
add dl,al
jae @f
 
mov dl,0xff
;--------------------------------------
align 4
@@:
rol edx,16
ret
;------------------------------------------------------------------------------
align 4
calculate_button_y_coordinate_and_size:
mov ecx,[button_top_offset]
shl ecx,16
177,4 → 196,5
add ecx,[height]
sub ecx,[button_top_offset]
sub ecx,[button_bottom_offset]
ret
ret
;------------------------------------------------------------------------------