Subversion Repositories Kolibri OS

Rev

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

Rev 8869 Rev 8928
Line 4... Line 4...
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;                                                              ;;
6
;;                                                              ;;
7
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
7
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 8... Line 8...
8
 
8
 
Line 9... Line 9...
9
$Revision: 8869 $
9
$Revision: 8928 $
10
 
10
 
11
;==============================================================================
11
;==============================================================================
Line 1684... Line 1684...
1684
        ret
1684
        ret
1685
;--------------------------------------
1685
;--------------------------------------
1686
align 4
1686
align 4
1687
.fix_width_high:
1687
.fix_width_high:
1688
        mov     ecx, esi
1688
        mov     ecx, esi
-
 
1689
        dec     ecx
1689
        mov     [edi + WDATA.box.width], esi
1690
        mov     [edi + WDATA.box.width], ecx
1690
        jmp     .check_left
1691
        jmp     .check_left
1691
;--------------------------------------
1692
;--------------------------------------
1692
align 4
1693
align 4
1693
.fix_left_low:
1694
.fix_left_low:
1694
        xor     eax, eax
1695
        xor     eax, eax
Line 1697... Line 1698...
1697
;--------------------------------------
1698
;--------------------------------------
1698
align 4
1699
align 4
1699
.fix_left_high:
1700
.fix_left_high:
1700
        mov     eax, esi
1701
        mov     eax, esi
1701
        sub     eax, ecx
1702
        sub     eax, ecx
-
 
1703
        dec     eax
1702
        mov     [edi + WDATA.box.left], eax
1704
        mov     [edi + WDATA.box.left], eax
1703
        jmp     .check_height
1705
        jmp     .check_height
1704
;--------------------------------------
1706
;--------------------------------------
1705
align 4
1707
align 4
1706
.fix_height_high:
1708
.fix_height_high:
1707
        mov     edx, esi
1709
        mov     edx, esi
-
 
1710
        dec     edx
1708
        mov     [edi + WDATA.box.height], esi
1711
        mov     [edi + WDATA.box.height], edx
1709
        jmp     .check_top
1712
        jmp     .check_top
1710
;--------------------------------------
1713
;--------------------------------------
1711
align 4
1714
align 4
1712
.fix_top_low:
1715
.fix_top_low:
1713
        xor     ebx, ebx
1716
        xor     ebx, ebx
Line 1716... Line 1719...
1716
;--------------------------------------
1719
;--------------------------------------
1717
align 4
1720
align 4
1718
.fix_top_high:
1721
.fix_top_high:
1719
        mov     ebx, esi
1722
        mov     ebx, esi
1720
        sub     ebx, edx
1723
        sub     ebx, edx
-
 
1724
        dec     ebx
1721
        mov     [edi + WDATA.box.top], ebx
1725
        mov     [edi + WDATA.box.top], ebx
1722
        jmp     .exit
1726
        jmp     .exit
1723
;------------------------------------------------------------------------------
1727
;------------------------------------------------------------------------------
1724
align 4
1728
align 4
1725
;------------------------------------------------------------------------------
1729
;------------------------------------------------------------------------------