Subversion Repositories Kolibri OS

Rev

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

Rev 7103 Rev 8012
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: 7103 $
9
$Revision: 8012 $
10
 
10
 
11
;==============================================================================
11
;==============================================================================
Line 1503... Line 1503...
1503
        mov     eax, [eax * 8 + window_topleft + 0]
1503
        mov     eax, [eax * 8 + window_topleft + 0]
1504
        mov     [edi + SLOT_BASE + APPDATA.wnd_clientbox.left], eax
1504
        mov     [edi + SLOT_BASE + APPDATA.wnd_clientbox.left], eax
1505
        shl     eax, 1
1505
        shl     eax, 1
1506
        neg     eax
1506
        neg     eax
1507
        add     eax, [ecx + WDATA.box.width]
1507
        add     eax, [ecx + WDATA.box.width]
-
 
1508
        inc     eax  ;Leency: as window is created width+1 so client the same
1508
        mov     [edi + SLOT_BASE + APPDATA.wnd_clientbox.width], eax
1509
        mov     [edi + SLOT_BASE + APPDATA.wnd_clientbox.width], eax
Line 1509... Line 1510...
1509
 
1510
 
1510
        movzx   eax, [ecx + WDATA.fl_wstyle]
1511
        movzx   eax, [ecx + WDATA.fl_wstyle]
1511
        and     eax, 0x0F
1512
        and     eax, 0x0F
1512
        push    [eax * 8 + window_topleft + 0]
1513
        push    [eax * 8 + window_topleft + 0]
1513
        mov     eax, [eax * 8 + window_topleft + 4]
1514
        mov     eax, [eax * 8 + window_topleft + 4]
1514
        mov     [edi + SLOT_BASE + APPDATA.wnd_clientbox.top], eax
1515
        mov     [edi + SLOT_BASE + APPDATA.wnd_clientbox.top], eax
1515
        neg     eax
1516
        neg     eax
1516
        sub     eax, [esp]
1517
        sub     eax, [esp]
-
 
1518
        add     eax, [ecx + WDATA.box.height]
1517
        add     eax, [ecx + WDATA.box.height]
1519
        inc     eax  ;Leency: as window is created height+1 so client the same
1518
        mov     [edi + SLOT_BASE + APPDATA.wnd_clientbox.height], eax
1520
        mov     [edi + SLOT_BASE + APPDATA.wnd_clientbox.height], eax
1519
        add     esp, 4
1521
        add     esp, 4
1520
        jmp     .exit
1522
        jmp     .exit
1521
;--------------------------------------
1523
;--------------------------------------