Subversion Repositories Kolibri OS

Rev

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

Rev 2648 Rev 2669
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: 2648 $
9
$Revision: 2669 $
10
 
10
 
11
;==============================================================================
11
;==============================================================================
Line 1329... Line 1329...
1329
        add     esp, sizeof.BOX
1329
        add     esp, sizeof.BOX
1330
        ret
1330
        ret
1331
;------------------------------------------------------------------------------
1331
;------------------------------------------------------------------------------
1332
align 4
1332
align 4
1333
;------------------------------------------------------------------------------
1333
;------------------------------------------------------------------------------
1334
sys_window_start_moving_handler: ;/////////////////////////////////////////////
1334
;sys_window_start_moving_handler: ;/////////////////////////////////////////////
1335
;------------------------------------------------------------------------------
1335
;------------------------------------------------------------------------------
1336
;? 
1336
;? 
1337
;------------------------------------------------------------------------------
1337
;------------------------------------------------------------------------------
1338
;> eax = old (original) window box
1338
;> eax = old (original) window box
1339
;> esi = process slot
1339
;> esi = process slot
1340
;------------------------------------------------------------------------------
1340
;------------------------------------------------------------------------------
1341
        mov     edi, eax
1341
;        mov     edi, eax
1342
        call    window._.draw_negative_box
1342
;        call    window._.draw_negative_box
1343
        ret
1343
;        ret
1344
;------------------------------------------------------------------------------
1344
;------------------------------------------------------------------------------
1345
align 4
1345
align 4
1346
;------------------------------------------------------------------------------
1346
;------------------------------------------------------------------------------
1347
sys_window_end_moving_handler: ;///////////////////////////////////////////////
1347
sys_window_end_moving_handler: ;///////////////////////////////////////////////
1348
;------------------------------------------------------------------------------
1348
;------------------------------------------------------------------------------
Line 1350... Line 1350...
1350
;------------------------------------------------------------------------------
1350
;------------------------------------------------------------------------------
1351
;> eax = old (original) window box
1351
;> eax = old (original) window box
1352
;> ebx = new (final) window box
1352
;> ebx = new (final) window box
1353
;> esi = process slot
1353
;> esi = process slot
1354
;------------------------------------------------------------------------------
1354
;------------------------------------------------------------------------------
1355
        mov     edi, ebx
1355
;        mov     edi, ebx
1356
        call    window._.end_moving__box
1356
;        call    window._.end_moving__box
Line 1357... Line 1357...
1357
 
1357
 
1358
        mov     edi, esi
1358
        mov     edi, esi
1359
        shl     edi, 5
1359
        shl     edi, 5
Line 2382... Line 2382...
2382
        add     bx, word[edi + BOX.height]
2382
        add     bx, word[edi + BOX.height]
2383
        call    draw_rectangle.forced
2383
        call    draw_rectangle.forced
2384
        pop     esi ebx eax
2384
        pop     esi ebx eax
2385
        ret
2385
        ret
2386
;------------------------------------------------------------------------------
2386
;------------------------------------------------------------------------------
2387
align 4
2387
;align 4
2388
;------------------------------------------------------------------------------
2388
;------------------------------------------------------------------------------
2389
window._.end_moving__box: ;//////////////////////////////////////////////////
2389
;window._.end_moving__box: ;//////////////////////////////////////////////////
2390
;------------------------------------------------------------------------------
2390
;------------------------------------------------------------------------------
2391
;? Draw positive box
2391
;? Draw positive box
2392
;------------------------------------------------------------------------------
2392
;------------------------------------------------------------------------------
2393
;> edi = pointer to BOX struct
2393
;> edi = pointer to BOX struct
2394
;------------------------------------------------------------------------------
2394
;------------------------------------------------------------------------------
2395
        push    eax ebx esi
2395
;        push    eax ebx esi
2396
        xor     esi, esi
2396
;        xor     esi, esi
2397
        jmp     window._.draw_negative_box.1
2397
;        jmp     window._.draw_negative_box.1
2398
;------------------------------------------------------------------------------
2398
;------------------------------------------------------------------------------
2399
align 4
2399
align 4
2400
;------------------------------------------------------------------------------
2400
;------------------------------------------------------------------------------
2401
window._.get_rect: ;/////////////////////////////////////////////////////
2401
window._.get_rect: ;/////////////////////////////////////////////////////
2402
;------------------------------------------------------------------------------
2402
;------------------------------------------------------------------------------