Subversion Repositories Kolibri OS

Rev

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

Rev 523 Rev 549
Line 1... Line 1...
1
$Revision: 523 $
1
$Revision: 549 $
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
;;                                                              ;;
3
;;                                                              ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
5
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
5
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
6
;; Distributed under terms of the GNU General Public License    ;;
6
;; Distributed under terms of the GNU General Public License    ;;
Line 897... Line 897...
897
	shl   eax, 5
897
	shl   eax, 5
898
	add   eax, window_data
898
	add   eax, window_data
899
	mov   ebx, [eax + WDATA.cl_workarea]
899
	mov   ebx, [eax + WDATA.cl_workarea]
900
	and   ebx, 0x0f000000
900
	and   ebx, 0x0f000000
901
	cmp   ebx, 0x03000000
901
	cmp   ebx, 0x03000000
-
 
902
	je   .set_WDATA_fl_redraw   ; for 3 and 4 style
-
 
903
	cmp   ebx, 0x04000000
-
 
904
	je   .set_WDATA_fl_redraw
902
	jne   @f
905
	jmp @f
-
 
906
	.set_WDATA_fl_redraw:
903
	mov   [eax + WDATA.fl_redraw], byte 1
907
	mov   [eax + WDATA.fl_redraw], byte 1
904
     @@:
908
     @@:
Line 905... Line 909...
905
 
909
 
906
	push   esi
910
	push   esi
Line 955... Line 959...
955
 
959
 
956
	mov   eax, [edi + WDATA.cl_workarea]
960
	mov   eax, [edi + WDATA.cl_workarea]
957
	and   eax, 0x0f000000
961
	and   eax, 0x0f000000
958
	cmp   eax, 0x03000000
962
	cmp   eax, 0x03000000
-
 
963
	je    .return_yes      ; window type 3
-
 
964
	cmp   eax, 0x04000000
Line 959... Line 965...
959
	je    .return_yes      ; window type 3
965
	je    .return_yes      ; window type 4
960
 
966
 
961
	mov   esi, edi
967
	mov   esi, edi
Line 1262... Line 1268...
1262
	jnz	.no_resize_2
1268
	jnz	.no_resize_2
Line 1263... Line 1269...
1263
 
1269
 
1264
	mov   [do_resize_from_corner],byte 0   ; resize for skinned window
1270
	mov   [do_resize_from_corner],byte 0   ; resize for skinned window
1265
    mov   edx, [edi + WDATA.cl_workarea]
1271
    mov   edx, [edi + WDATA.cl_workarea]
-
 
1272
	and   edx, 0x0f000000
-
 
1273
	cmp   edx, 0x00000000						;{test for resized}
-
 
1274
	je    .no_resize_2
-
 
1275
	cmp   edx, 0x01000000						;{test for resized}
1266
	and   edx, 0x0f000000
1276
	je    .no_resize_2
-
 
1277
	cmp   edx, 0x04000000						;{test for resized}					
1267
	cmp   edx, 0x02000000
1278
	je    .no_resize_2
Line 1268... Line 1279...
1268
	jb    .no_resize_2 ; not type 2 wnd
1279
;	jb    .no_resize_2 ; not type 2 wnd
1269
 
1280
 
1270
    mov   edx, [edi + WDATA.box.top]
1281
    mov   edx, [edi + WDATA.box.top]
1271
    add   edx, [edi + WDATA.box.height]
1282
    add   edx, [edi + WDATA.box.height]
Line 1495... Line 1506...
1495
	pop   ecx edi esi
1506
	pop   ecx edi esi
1496
      no_bounds_save:
1507
      no_bounds_save:
Line 1497... Line 1508...
1497
 
1508
 
Line -... Line 1509...
-
 
1509
	pushad				   ; WINDOW SHADE/FULLSCREEN
-
 
1510
 
-
 
1511
	;{doule click not worked for 4 type window}
-
 
1512
    mov   edx, [edi + WDATA.cl_workarea]
-
 
1513
	and   edx, 0x0f000000
-
 
1514
	cmp   edx, 0x00000000
-
 
1515
	je    no_fullscreen_restore
-
 
1516
	cmp   edx, 0x01000000
-
 
1517
	je    no_fullscreen_restore
-
 
1518
	cmp   edx, 0x04000000
1498
	pushad				   ; WINDOW SHADE/FULLSCREEN
1519
	je    no_fullscreen_restore
1499
 
1520
 
1500
	cmp   [reposition],1
1521
	cmp   [reposition],1
1501
	je    no_window_sizing
1522
	je    no_window_sizing
1502
	mov   edx,edi
1523
	mov   edx,edi