Subversion Repositories Kolibri OS

Rev

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

Rev 180 Rev 195
Line 96... Line 96...
96
    jc     .l1
96
    jc     .l1
97
    lea ebp,[ecx+ebx+20+2+17]
97
    lea ebp,[ecx+ebx+20+2+17]
98
    cmp [winys],bp
98
    cmp [winys],bp
99
    jc     .l1
99
    jc     .l1
Line 100... Line 100...
100
 
100
 
101
    add     eax,5  ; offset for boarder
101
    add     eax,2  ; offset for boarder
102
    add     ebx,20 ; offset for title bar
102
    add     ebx,2 ; offset for title bar
103
    push    ax ; pox
103
    push    ax ; pox
104
    push    bx ; pos
104
    push    bx ; pos
105
    push    cx ; size
105
    push    cx ; size
106
    push    dx ; size
106
    push    dx ; size
Line 233... Line 233...
233
;   *********************************************
233
;   *********************************************
Line 234... Line 234...
234
 
234
 
Line -... Line 235...
-
 
235
 
-
 
236
draw_window:
-
 
237
 
-
 
238
    mov  eax,48
-
 
239
    mov  ebx,3
-
 
240
    mov  ecx,sc
235
 
241
    mov  edx,sizeof.system_colors
236
draw_window:
242
    int  0x40
237
 
243
 
Line 238... Line 244...
238
    mov  eax,12
244
    mov  eax,12
Line 271... Line 277...
271
        mov     bx, [winxs]
277
        mov     bx, [winxs]
272
        mov     ecx, dword [winyo-2]
278
        mov     ecx, dword [winyo-2]
273
        mov     cx, [winys]
279
        mov     cx, [winys]
Line 274... Line 280...
274
 
280
 
275
    xor  eax,eax                   ; DRAW WINDOW
281
    xor  eax,eax                   ; DRAW WINDOW
276
    mov  edx,[wcolor]
282
    mov  edx,[sc.work]
277
    add  edx,0x13000000
283
    or   edx,0x33000000
278
    mov  edi,header                ; WINDOW LABEL
284
    mov  edi,header                ; WINDOW LABEL
Line 279... Line -...
279
    int  0x40
-
 
280
 
-
 
281
 
285
    int  0x40
282
    ; draw status bar
286
 
283
    mov     eax, 13
-
 
284
    movzx     ebx, word [winxs]
287
 
285
    sub     ebx, 5
-
 
286
    add     ebx, 4*65536
-
 
287
    mov     cx, [winys]
-
 
288
    sub     ecx, 19
-
 
289
    shl     ecx, 16
-
 
290
    add     ecx, 3
-
 
291
    mov     edx, 0x00557799
-
 
292
    int     0x40
-
 
293
 
-
 
294
    mov  eax,8                     ; BUTTON 2: filename
288
    mov  eax,8                     ; BUTTON 2: slideshow
295
    mov  ebx,4*65536+55
289
    mov  ebx,57
296
    mov  cx, [winys]
290
    mov  cx, [winys]
297
    sub  cx, 16
291
    sub  cx, 39
298
    shl  ecx, 16
292
    shl  ecx, 16
299
    add  ecx, 12
293
    add  ecx, 12
Line 300... Line 294...
300
    mov  esi, 0x00557799
294
    mov  esi, [sc.work_button]
301
    mov  edx,2
295
    mov  edx,2
302
    int  0x40
-
 
303
 
296
    int  0x40
304
    mov  eax,4                     ; Button text
297
 
305
    movzx ebx, word [winys]
298
    mov  eax,4                     ; Button text
306
    sub   ebx, 13
299
    movzx ebx, word [winys]
307
    add   ebx, 6*65536
300
    add   ebx, 3 shl 16 - 36
Line 308... Line 301...
308
    mov  ecx,0x00ffffff
301
    mov  ecx,[sc.work_button_text]
309
    mov  edx,setname
302
    mov  edx,setname
310
    mov  esi,setnamelen-setname
303
    mov  esi,setnamelen-setname
311
    int  0x40
304
    int  0x40
312
 
305
 
313
 
306
 
314
    mov  eax,8                     ; BUTTON 3: set as background
307
    mov  eax,8                     ; BUTTON 3: set as background
315
    mov  bx, [winxs]
308
    mov  bx, [winxs]
316
    sub  bx, 60
309
    sub  bx, 65
317
    shl  ebx, 16
310
    shl  ebx, 16
318
    mov  bx,55
311
    mov  bx,55
319
    mov  cx, [winys]
312
    mov  cx, [winys]
Line 320... Line 313...
320
    sub  cx, 16
313
    sub  cx, 39
321
    shl  ecx, 16
314
    shl  ecx, 16
322
    add  ecx, 12
315
    add  ecx, 12
323
    mov  esi, 0x00557799
316
    mov  esi, [sc.work_button]
324
    mov  edx,3
317
    mov  edx,3
325
    int  0x40
318
    int  0x40
326
 
319
 
327
    mov  eax,4                     ; Button text
320
    mov  eax,4                     ; Button text
328
    movzx ebx, word [winxs]
321
    movzx ebx, word [winxs]
329
    sub   ebx, 60
322
    sub   ebx, 63
330
    shl   ebx,16
323
    shl   ebx,16
331
    mov   bx, word [winys]
324
    mov   bx, word [winys]
Line 389... Line 382...
389
 
382
 
Line 390... Line 383...
390
load_image:
383
load_image:
391
 
384
 
392
    mov     eax,13              ; clear picture area
-
 
393
    movzx    ebx, word [winxs]
385
    mov     eax,13              ; clear picture area
394
    sub     ebx, 7
386
    movzx    ebx, word [winxs]
395
    add     ebx, 4 * 65536
387
    add     ebx, 1  shl 16 -10
396
    movzx    ecx, word [winys]
388
    movzx    ecx, word [winys]
Line 397... Line 389...
397
    sub     ecx, 39
389
    sub     ecx, 40
398
    add     ecx, 20 * 65536
390
    add     ecx, 1  shl 16
399
 
391
 
400
    mov     edx,0
392
    mov     edx,[sc.work]
401
    int     0x40
393
    int     0x40
402
    mov    ebp,[jpeg_st]
394
    mov    ebp,[jpeg_st]
Line 408... Line 400...
408
 
400
 
409
print_strings:
401
print_strings:
410
    pusha
402
    pusha
411
    mov     eax,13              ; clear text area
403
    mov     eax,13              ; clear text area
412
    movzx   ebx, word [winxs]
-
 
413
    sub     ebx, 64+58
404
    movzx   ebx, word [winxs]
414
    add     ebx, 60*65536
405
    add     ebx, 59 shl 16 -125
415
    mov     cx, [winys]
406
    mov     cx, [winys]
416
    sub     cx, 16
407
    sub     cx, 39
417
    shl     ecx, 16
408
    shl     ecx, 16
418
    add     ecx, 12
409
    add     ecx, 12
419
    mov     edx,0xffffff
410
    mov     edx,0xffffff
Line 420... Line 411...
420
    int     0x40
411
    int     0x40
421
 
412
 
422
    mov     eax,4               ;
-
 
423
    movzx   ebx, word [winys]
413
    mov     eax,4               ;
424
    sub     ebx, 14
414
    movzx   ebx, word [winys]
425
    add     ebx, 60*65536
415
    add     ebx, 61 shl 16 - 37
426
    mov     ecx,0x000000
416
    mov     ecx,0x000000
427
    mov     edx,name_string
417
    mov     edx,name_string
428
    mov     esi,60
418
    mov     esi,60
Line 527... Line 517...
527
winyo           dw  0
517
winyo           dw  0
528
winxs           dw  0
518
winxs           dw  0
529
winys           dw  0
519
winys           dw  0
530
jpeg_st         dd  0
520
jpeg_st         dd  0
531
file_dir        dd  0
521
file_dir        dd  0
532
tcolor          dd  0x000000
-
 
533
btcolor         dd  0x224466+0x808080
-
 
534
name_string:    db '/rd/1/jpegview.jpg',0
522
name_string:    db '/rd/1/jpegview.jpg',0
535
rb 256
523
rb 256
536
    .end:
524
    .end:
537
    .cursor: db 19
525
    .cursor: db 19
538
    .cursor2: db 0
526
    .cursor2: db 0
Line 550... Line 538...
550
              dd -(iniciomemoria+4),-(iniciomemoria+4),(iniciomemoria+4),.l1,0
538
              dd -(iniciomemoria+4),-(iniciomemoria+4),(iniciomemoria+4),.l1,0
551
.l1           dd 0
539
.l1           dd 0
Line 552... Line 540...
552
 
540
 
553
fin:
541
fin:
554
I_END:
-
 
-
 
542
I_END:
555
 
543
sc     system_colors
556
fileattr: rb 40
544
fileattr: rb 40