Subversion Repositories Kolibri OS

Rev

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

Rev 3606 Rev 3611
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
 
Line 74... Line 74...
74
$Revision: 3606 $
74
$Revision: 3611 $
Line 3515... Line 3515...
3515
        mov     eax, [BG_Rect_X_left_right]
3515
        mov     eax, [BG_Rect_X_left_right]
3516
        mov     edx, [BG_Rect_Y_top_bottom]
3516
        mov     edx, [BG_Rect_Y_top_bottom]
3517
        cmp     [edi+SLOT_BASE+APPDATA.draw_bgr_x], 0
3517
        cmp     [edi+SLOT_BASE+APPDATA.draw_bgr_x], 0
3518
        jz      .set
3518
        jz      .set
3519
.join:
3519
.join:
3520
        cmp     word [edi+SLOT_BASE+APPDATA.draw_bgr_x+2], ax
-
 
3521
        jbe     @f
-
 
3522
        mov     word [edi+SLOT_BASE+APPDATA.draw_bgr_x+2], ax
-
 
3523
@@:
-
 
3524
        shr     eax, 16
-
 
3525
        cmp     word [edi+SLOT_BASE+APPDATA.draw_bgr_x], ax
3520
        cmp     word [edi+SLOT_BASE+APPDATA.draw_bgr_x], ax
3526
        jae     @f
3521
        jae     @f
3527
        mov     word [edi+SLOT_BASE+APPDATA.draw_bgr_x], ax
3522
        mov     word [edi+SLOT_BASE+APPDATA.draw_bgr_x], ax
3528
@@:
3523
@@:
-
 
3524
        shr     eax, 16
3529
        cmp     word [edi+SLOT_BASE+APPDATA.draw_bgr_y+2], dx
3525
        cmp     word [edi+SLOT_BASE+APPDATA.draw_bgr_x+2], ax
3530
        jbe     @f
3526
        jbe     @f
3531
        mov     word [edi+SLOT_BASE+APPDATA.draw_bgr_y+2], dx
3527
        mov     word [edi+SLOT_BASE+APPDATA.draw_bgr_x+2], ax
3532
@@:
3528
@@:
3533
        shr     edx, 16
-
 
3534
        cmp     word [edi+SLOT_BASE+APPDATA.draw_bgr_y], dx
3529
        cmp     word [edi+SLOT_BASE+APPDATA.draw_bgr_y], dx
3535
        jae     @f
3530
        jae     @f
3536
        mov     word [edi+SLOT_BASE+APPDATA.draw_bgr_y], dx
3531
        mov     word [edi+SLOT_BASE+APPDATA.draw_bgr_y], dx
3537
@@:
3532
@@:
-
 
3533
        shr     edx, 16
-
 
3534
        cmp     word [edi+SLOT_BASE+APPDATA.draw_bgr_y+2], dx
-
 
3535
        jbe     @f
-
 
3536
        mov     word [edi+SLOT_BASE+APPDATA.draw_bgr_y+2], dx
-
 
3537
@@:
3538
        jmp     .common
3538
        jmp     .common
3539
.set:
3539
.set:
3540
        mov     [edi+SLOT_BASE+APPDATA.draw_bgr_x], eax
3540
        mov     [edi+SLOT_BASE+APPDATA.draw_bgr_x], eax
3541
        mov     [edi+SLOT_BASE+APPDATA.draw_bgr_y], edx
3541
        mov     [edi+SLOT_BASE+APPDATA.draw_bgr_y], edx
3542
.common:
3542
.common: