Subversion Repositories Kolibri OS

Rev

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

Rev 2214 Rev 2233
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: 2214 $
9
$Revision: 2233 $
10
 
10
 
11
;==============================================================================
11
;==============================================================================
Line 1161... Line 1161...
1161
;> eax = old (original) window box
1161
;> eax = old (original) window box
1162
;> ebx = new (final) window box
1162
;> ebx = new (final) window box
1163
;> esi = process slot
1163
;> esi = process slot
1164
;------------------------------------------------------------------------------
1164
;------------------------------------------------------------------------------
1165
        mov     edi, ebx
1165
        mov     edi, ebx
1166
        call    window._.draw_negative_box
1166
        call    window._.end_moving__box
Line 1167... Line 1167...
1167
 
1167
 
1168
        mov     edi, esi
1168
        mov     edi, esi
1169
        shl     edi, 5
1169
        shl     edi, 5
Line 1304... Line 1304...
1304
	add	edi, WDATA.box
1304
	add	edi, WDATA.box
1305
end if
1305
end if
1306
	mov	ecx, 4
1306
	mov	ecx, 4
1307
	repz	cmpsd
1307
	repz	cmpsd
1308
	pop	edi
1308
	pop	edi
1309
	jnz	@f
-
 
1310
	
-
 
1311
	mov	edi,eax
-
 
1312
        mov     eax, [edi + BOX.left - 2]
-
 
1313
        mov     ax, word[edi + BOX.left]
-
 
1314
        add     ax, word[edi + BOX.width]
-
 
1315
        mov     ebx, [edi + BOX.top - 2]
-
 
1316
        mov     bx, word[edi + BOX.top]
-
 
1317
        add     bx, word[edi + BOX.height]
-
 
1318
        xor     esi,esi
-
 
1319
        call    draw_rectangle.forced
-
 
1320
	jmp	.exit
1309
	jz	.exit
1321
@@:
1310
@@:
Line 1322... Line 1311...
1322
 
1311
 
Line 1323... Line 1312...
1323
        add     esp, -BOX.sizeof
1312
        add     esp, -BOX.sizeof
Line 2082... Line 2071...
2082
;? Draw negative box
2071
;? Draw negative box
2083
;------------------------------------------------------------------------------
2072
;------------------------------------------------------------------------------
2084
;> edi = pointer to BOX struct
2073
;> edi = pointer to BOX struct
2085
;------------------------------------------------------------------------------
2074
;------------------------------------------------------------------------------
2086
        push    eax ebx esi
2075
        push    eax ebx esi
-
 
2076
        mov     esi, 0x01000000
-
 
2077
.1:
2087
        mov     eax, [edi + BOX.left - 2]
2078
        mov     eax, [edi + BOX.left - 2]
2088
        mov     ax, word[edi + BOX.left]
2079
        mov     ax, word[edi + BOX.left]
2089
        add     ax, word[edi + BOX.width]
2080
        add     ax, word[edi + BOX.width]
2090
        mov     ebx, [edi + BOX.top - 2]
2081
        mov     ebx, [edi + BOX.top - 2]
2091
        mov     bx, word[edi + BOX.top]
2082
        mov     bx, word[edi + BOX.top]
2092
        add     bx, word[edi + BOX.height]
2083
        add     bx, word[edi + BOX.height]
2093
        mov     esi, 0x01000000
-
 
2094
        call    draw_rectangle.forced
2084
        call    draw_rectangle.forced
2095
        pop     esi ebx eax
2085
        pop     esi ebx eax
2096
        ret
2086
        ret
-
 
2087
;------------------------------------------------------------------------------
-
 
2088
window._.end_moving__box: ;//////////////////////////////////////////////////
-
 
2089
;------------------------------------------------------------------------------
-
 
2090
;? Draw positive box
-
 
2091
;------------------------------------------------------------------------------
-
 
2092
;> edi = pointer to BOX struct
-
 
2093
;------------------------------------------------------------------------------
-
 
2094
        push    eax ebx esi
-
 
2095
	xor	esi,esi
-
 
2096
	jmp	window._.draw_negative_box.1
2097
2097