Subversion Repositories Kolibri OS

Rev

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

Rev 3981 Rev 4060
Line 223... Line 223...
223
        popa
223
        popa
Line 224... Line 224...
224
 
224
 
Line 225... Line -...
225
        ret
-
 
226
 
-
 
227
 
-
 
228
 
-
 
229
 
-
 
230
draw_channel_text:
-
 
231
 
-
 
232
        pusha
-
 
233
 
-
 
234
        mov     eax, 4                  ; draw text
-
 
235
        mov     ebx, TEXT_X shl 16 + TEXT_Y
-
 
236
        mov     ecx, 12                 ; 12 lines max ?
-
 
237
        mov     esi, [textbox_width]
-
 
238
 
-
 
239
  .dct:
-
 
240
        pusha
-
 
241
        mov     cx, bx
-
 
242
        shl     ecx, 16
-
 
243
        mov     cx, 9                   ; character height
-
 
244
        mov     eax, 13                 ; draw rectangle
-
 
245
        mov     ebx, TEXT_X shl 16
-
 
246
        mov     bx, word[textbox_width]
-
 
247
        imul    bx, 6                   ; character width
-
 
248
        mov     edx, [colors.work]
-
 
249
        mcall
-
 
250
        popa
-
 
251
 
-
 
252
        push    ecx
-
 
253
        mov     ecx, [colors.work_text]
-
 
254
        cmp     word[edx], '* '
-
 
255
        jne     .no_red
-
 
256
        mov     ecx, 0x00aa0000
-
 
257
        jmp     .draw
-
 
258
  .no_red:
-
 
259
 
-
 
260
        cmp     word[edx], '**'
-
 
261
        jne     .no_light_blue
-
 
262
        cmp     byte[edx+2], '*'
-
 
263
        jne     .no_light_blue
-
 
264
        mov     ecx, 0x000000aa
-
 
265
        jmp     .draw
-
 
266
  .no_light_blue:
-
 
267
 
-
 
268
        cmp     byte[edx], '#'
-
 
269
        jne     .no_blue
-
 
270
        mov     ecx, 0x0000aa00
-
 
271
;        jmp     .draw
-
 
272
  .no_blue:
-
 
273
 
-
 
274
  .draw:
-
 
275
        mcall
-
 
276
        add     edx, [textbox_width]
-
 
277
        add     ebx, 10                 ; height distance between lines
-
 
278
 
-
 
279
        pop     ecx
-
 
280
        loop    .dct
-
 
281
 
-
 
282
        mov     eax, [window_active]
-
 
283
        and     [eax + window.flags], not FLAG_UPDATED  ; clear the 'window is updated' flag
-
 
284
 
-
 
285
        popa
-
 
286
        ret
-
 
287
 
225
        ret
Line 288... Line 226...
288
 
226
 
Line 289... Line 227...
289
 
227