Subversion Repositories Kolibri OS

Rev

Rev 2619 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2619 Rev 2630
Line 126... Line 126...
126
; eax = magnitude
126
; eax = magnitude
127
; out:
127
; out:
128
; edx = processed color
128
; edx = processed color
129
	sub	dl,al
129
	sub	dl,al
130
	jae	@f
130
	jae	@f
-
 
131
 
131
	xor	dl,dl
132
	xor	dl,dl
-
 
133
;--------------------------------------
-
 
134
align 4
132
@@:
135
@@:
133
	ror	edx,8
136
	ror	edx,8
134
	ror	eax,8
137
	ror	eax,8
135
	sub	dl,al
138
	sub	dl,al
136
	jae	@f
139
	jae	@f
-
 
140
 
137
	xor	dl,dl
141
	xor	dl,dl
-
 
142
;--------------------------------------
-
 
143
align 4
138
@@:
144
@@:
139
	ror	edx,8
145
	ror	edx,8
140
	ror	eax,8
146
	ror	eax,8
141
	sub	dl,al
147
	sub	dl,al
142
	jae	@f
148
	jae	@f
-
 
149
 
143
	xor	dl,dl
150
	xor	dl,dl
-
 
151
;--------------------------------------
-
 
152
align 4
144
@@:
153
@@:
145
	rol	edx,16
154
	rol	edx,16
146
	ret
155
	ret
147
;------------------------------------------------------------------------------
156
;------------------------------------------------------------------------------
148
align 4
157
align 4
Line 152... Line 161...
152
; eax = magnitude
161
; eax = magnitude
153
; out:
162
; out:
154
; edx = processed color
163
; edx = processed color
155
	add	dl,al
164
	add	dl,al
156
	jae	@f
165
	jae	@f
-
 
166
 
157
	mov	dl,0xff
167
	mov	dl,0xff
-
 
168
;--------------------------------------
-
 
169
align 4
158
@@:
170
@@:
159
	ror	edx,8
171
	ror	edx,8
160
	ror	eax,8
172
	ror	eax,8
161
	add	dl,al
173
	add	dl,al
162
	jae	@f
174
	jae	@f
-
 
175
 
163
	mov	dl,0xff
176
	mov	dl,0xff
-
 
177
;--------------------------------------
-
 
178
align 4
164
@@:
179
@@:
165
	ror	edx,8
180
	ror	edx,8
166
	ror	eax,8
181
	ror	eax,8
167
	add	dl,al
182
	add	dl,al
168
	jae	@f
183
	jae	@f
-
 
184
 
169
	mov	dl,0xff
185
	mov	dl,0xff
-
 
186
;--------------------------------------
-
 
187
align 4
170
@@:
188
@@:
171
	rol	edx,16
189
	rol	edx,16
172
	ret
190
	ret
173
;------------------------------------------------------------------------------
191
;------------------------------------------------------------------------------
-
 
192
align 4
174
calculate_button_y_coordinate_and_size:
193
calculate_button_y_coordinate_and_size:
175
	mov	ecx,[button_top_offset]
194
	mov	ecx,[button_top_offset]
176
	shl	ecx,16
195
	shl	ecx,16
177
	add	ecx,[height]
196
	add	ecx,[height]
178
	sub	ecx,[button_top_offset]
197
	sub	ecx,[button_top_offset]
179
	sub	ecx,[button_bottom_offset]
198
	sub	ecx,[button_bottom_offset]
180
	ret
199
	ret
181
200
;------------------------------------------------------------------------------
-
 
201