Subversion Repositories Kolibri OS

Rev

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

Rev 485 Rev 6024
Line 87... Line 87...
87
; COLLIMG - Collusion image's
87
; COLLIMG - Collusion image's
88
_1dbounce_count=0;
88
_1dbounce_count=0;
89
macro collimg img1_off,x1,y1,img2_off,x2,y2,otv
89
macro collimg img1_off,x1,y1,img2_off,x2,y2,otv
90
{
90
{
91
local bounce,exit,anot,bc,nbc
91
local bounce,exit,anot,bc,nbc
92
	mov esi,[img1_off] ;xs1
92
        mov esi, dword[img1_off] ;xs1
93
	mov edi,[img2_off] ;ys2
93
        mov edi, dword[img2_off] ;ys2
94
	mov eax,x1 ;
94
        mov eax, x1 ;
95
	mov ebx,x2 ;
95
        mov ebx, x2 ;
96
	call _1dbounce
96
        call _1dbounce
97
	mov edx,ecx
97
        mov edx,ecx
98
	mov esi,[img1_off+4] ;ys1
98
        mov esi, dword[img1_off+4] ;ys1
99
	mov edi,[img2_off+4] ;ys2
99
        mov edi, dword[img2_off+4] ;ys2
100
	mov eax,y1 ;
100
        mov eax, y1 ;
101
	mov ebx,y2 ;
101
        mov ebx, y2 ;
102
	call _1dbounce
102
        call _1dbounce
103
	add edx,ecx
103
        add edx, ecx
104
	cmp edx,2
104
        cmp edx, 2
Line 314... Line 314...
314
    mov dword [bmp_load_area+34],eax
314
    mov dword [bmp_load_area+34],eax
Line 315... Line 315...
315
 
315
 
316
  yespicsize:
316
  yespicsize:
317
    mov  eax,bmp_load_area
317
    mov  eax,bmp_load_area
318
    mov  ebx,eax
318
    mov  ebx,eax
319
    add  ebx, [bmp_load_area+2];file size
319
    add  ebx, dword[bmp_load_area+2];file size
320
    inc  ebx
320
    inc  ebx
321
    mov  dword [bmp_soi],ebx   ;soi-start of image area for drawing
321
    mov  dword [bmp_soi],ebx   ;soi-start of image area for drawing
322
    add  eax, [bmp_load_area+10]
322
    add  eax, dword[bmp_load_area+10]
323
    mov  dword [sop],eax   ;sop-start of picture in file
323
    mov  dword [sop],eax   ;sop-start of picture in file
324
    add  eax, [bmp_load_area+34]
324
    add  eax, dword[bmp_load_area+34]
325
    mov  dword [eop],eax   ;eop-end of picture in file
325
    mov  dword [eop],eax   ;eop-end of picture in file
326
    mov  eax, [bmp_load_area+18]
326
    mov  eax, dword[bmp_load_area+18]
Line 327... Line 327...
327
    lea  eax,[eax+2*eax]   ;3x pixels in eax
327
    lea  eax,[eax+2*eax]   ;3x pixels in eax
328
 
328
 
329
    mov  edi,dword [bmp_soi]   ;initializing
329
    mov  edi,dword [bmp_soi]   ;initializing
Line 351... Line 351...
351
;  nomorestring:
351
;  nomorestring:
352
;    jmp end_bmp
352
;    jmp end_bmp
Line 353... Line 353...
353
 
353
 
354
  convertno32:
354
  convertno32:
355
    mov  ebx,bmp_load_area
355
    mov  ebx,bmp_load_area
356
    add  ebx, [bmp_load_area+14]
356
    add  ebx, dword[bmp_load_area+14]
357
    add  ebx,14          ;start of color table
357
    add  ebx,14          ;start of color table
358
    push esi
358
    push esi
359
    add  esi,dword [bps]
359
    add  esi, dword[bps]
360
    mov  dword [eos],esi
360
    mov  dword [eos],esi