Subversion Repositories Kolibri OS

Rev

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

Rev 2455 Rev 2464
Line 67... Line 67...
67
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
67
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 68... Line 68...
68
 
68
 
69
include 'macros.inc'
69
include 'macros.inc'
Line 70... Line 70...
70
include 'struct.inc'
70
include 'struct.inc'
Line 71... Line 71...
71
 
71
 
Line 72... Line 72...
72
$Revision: 2455 $
72
$Revision: 2464 $
Line 2442... Line 2442...
2442
        mov     [BgrDataHeight], eax
2442
        mov     [BgrDataHeight], eax
2443
@@:
2443
@@:
2444
        mov     eax, [BgrDataWidth]
2444
        mov     eax, [BgrDataWidth]
2445
        imul    eax, [BgrDataHeight]
2445
        imul    eax, [BgrDataHeight]
2446
        lea     eax, [eax*3]
2446
        lea     eax, [eax*3]
-
 
2447
; it is reserved with aligned to the boundary of 4 KB pages,
-
 
2448
; otherwise there may be exceptions a page fault for vesa20_drawbackground_tiled
-
 
2449
; because the 32 bit read is used for  high performance: "mov eax,[esi]"
-
 
2450
        shr     eax, 12
-
 
2451
        inc     eax
-
 
2452
        shl     eax, 12
2447
        mov     [mem_BACKGROUND], eax
2453
        mov     [mem_BACKGROUND], eax
2448
; get memory for new background
2454
; get memory for new background
2449
        stdcall kernel_alloc, eax
2455
        stdcall kernel_alloc, eax
2450
        test    eax, eax
2456
        test    eax, eax
2451
        jz      .memfailed
2457
        jz      .memfailed