Subversion Repositories Kolibri OS

Rev

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

Rev 8713 Rev 8714
Line 69... Line 69...
69
format binary as "mnt"
69
format binary as "mnt"
Line 70... Line 70...
70
 
70
 
71
include 'macros.inc'
71
include 'macros.inc'
Line 72... Line 72...
72
include 'struct.inc'
72
include 'struct.inc'
Line 73... Line 73...
73
 
73
 
74
$Revision: 8713 $
74
$Revision: 8714 $
Line 2827... Line 2827...
2827
;------------------------------------------------------------------------------
2827
;------------------------------------------------------------------------------
2828
align 4
2828
align 4
2829
nosb4:
2829
nosb4:
2830
        cmp     ebx, 5                     ; BLOCK MOVE TO BGR
2830
        cmp     ebx, 5                     ; BLOCK MOVE TO BGR
2831
        jnz     nosb5
2831
        jnz     nosb5
-
 
2832
 
-
 
2833
; add check pointer
-
 
2834
        stdcall is_region_userspace, ecx, esi
-
 
2835
        jz      .fin
-
 
2836
 
2832
        cmp     [img_background], static_background_data
2837
        cmp     [img_background], static_background_data
2833
        jnz     @f
2838
        jnz     @f
2834
        test    edx, edx
2839
        test    edx, edx
2835
        jnz     .fin
2840
        jnz     .fin
2836
        cmp     esi, 4
2841
        cmp     esi, 4
Line 4383... Line 4388...
4383
        call    __sys_draw_pointer
4388
        call    __sys_draw_pointer
4384
        ret
4389
        ret
4385
;-----------------------------------------------------------------------------
4390
;-----------------------------------------------------------------------------
4386
align 4
4391
align 4
4387
syscall_putimage:                       ; PutImage
4392
syscall_putimage:                       ; PutImage
-
 
4393
; add check pointer
-
 
4394
        push    ecx
-
 
4395
        mov     ax, cx
-
 
4396
        shr     ecx, 16
-
 
4397
        imul    eax, ecx
-
 
4398
        lea     eax, [eax*3]
-
 
4399
        stdcall is_region_userspace, ebx, eax
-
 
4400
        pop     ecx
-
 
4401
        jz      sys_putimage.exit
-
 
4402
 
4388
sys_putimage:
4403
sys_putimage:
4389
        test    ecx, 0x80008000
4404
        test    ecx, 0x80008000
4390
        jnz     .exit
4405
        jnz     .exit
4391
        test    ecx, 0x0000FFFF
4406
        test    ecx, 0x0000FFFF
4392
        jz      .exit
4407
        jz      .exit