Subversion Repositories Kolibri OS

Rev

Rev 856 | Rev 906 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 856 Rev 875
Line 53... Line 53...
53
;;
53
;;
54
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
54
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 55... Line 55...
55
 
55
 
Line 56... Line 56...
56
include 'macros.inc'
56
include 'macros.inc'
Line 57... Line 57...
57
 
57
 
Line 58... Line 58...
58
$Revision: 856 $
58
$Revision: 875 $
Line 2271... Line 2271...
2271
	mov	[bgrlock], 0
2271
	mov	[bgrlock], 0
Line 2272... Line 2272...
2272
 
2272
 
2273
  sbgrr:
2273
  sbgrr:
Line 2274... Line 2274...
2274
    ret
2274
    ret
Line 2275... Line 2275...
2275
 
2275
 
2276
  nosb1:
2276
nosb1:
-
 
2277
 
2277
 
2278
    cmp   ebx,2 			   ; SET PIXEL
-
 
2279
    jnz   nosb2
-
 
2280
 
-
 
2281
    mov ebx, [mem_BACKGROUND]
-
 
2282
    add ebx, 4095
2278
    cmp   ebx,2 			   ; SET PIXEL
2283
    and ebx, -4096
-
 
2284
    sub ebx, 4
2279
    jnz   nosb2
2285
    cmp   ecx, ebx
2280
    cmp   ecx,[mem_BACKGROUND]
2286
    ja   @F
2281
    jae   nosb2
2287
 
2282
    mov   eax,[img_background]
2288
    mov   eax,[img_background]
2283
    mov   ebx,[eax+ecx]
2289
    mov   ebx,[eax+ecx]
2284
    and   ebx,0xFF000000 ;255*256*256*256
2290
    and   ebx,0xFF000000 ;255*256*256*256
2285
    and   edx,0x00FFFFFF ;255*256*256+255*256+255
2291
    and   edx,0x00FFFFFF ;255*256*256+255*256+255
2286
    add   edx,ebx
2292
    add   edx,ebx
2287
    mov   [eax+ecx],edx
2293
    mov   [eax+ecx],edx
Line 2288... Line 2294...
2288
;    mov   [bgrchanged],1
2294
@@:
2289
    ret
2295
    ret
2290
  nosb2:
2296
nosb2:
2291
 
2297
 
Line 2429... Line 2435...
2429
    mov   eax,[BgrDataWidth]
2435
    mov   eax,[BgrDataWidth]
2430
    shl   eax,16
2436
    shl   eax,16
2431
    mov   ax,[BgrDataHeight]
2437
    mov   ax,[BgrDataHeight]
2432
    mov   [esp+36],eax
2438
    mov   [esp+36],eax
2433
    ret
2439
    ret
-
 
2440
 
2434
  nogb1:
2441
nogb1:
Line 2435... Line 2442...
2435
 
2442
 
2436
    cmp   eax,2 				 ; PIXEL
2443
    cmp   eax,2 				 ; PIXEL
-
 
2444
    jnz   nogb2
2437
    jnz   nogb2
2445
 
2438
;    mov   edx,0x160000-16
2446
    mov ecx, [mem_BACKGROUND]
-
 
2447
    add ecx, 4095
2439
;    cmp   edx,ebx
2448
    and ecx, -4096
2440
;    jbe   nogb2
2449
    sub ecx, 4
-
 
2450
    cmp ebx, ecx
-
 
2451
    ja  @F
2441
;    mov   eax, [ebx+IMG_BACKGROUND]
2452
 
2442
    mov   eax,[img_background]
2453
    mov   eax,[img_background]
Line 2443... Line 2454...
2443
    mov   eax,[ebx+eax]
2454
    mov   eax,[ebx+eax]
2444
 
2455
 
-
 
2456
    and   eax, 0xFFFFFF
2445
    and   eax, 0xFFFFFF
2457
    mov   [esp+36],eax
2446
    mov   [esp+36],eax
2458
@@:
Line 2447... Line 2459...
2447
    ret
2459
    ret
2448
  nogb2:
2460
  nogb2: