Subversion Repositories Kolibri OS

Rev

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

Rev 986 Rev 994
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2009. All rights reserved. ;;
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 8...
7
 
8
 
Line 8... Line 9...
8
$Revision: 986 $
9
$Revision: 994 $
9
 
10
 
10
 
11
 
Line 1205... Line 1206...
1205
	mov   esi,[TASK_COUNT]
1206
	mov   esi,[TASK_COUNT]
1206
	inc   esi
1207
	inc   esi
Line 1207... Line 1208...
1207
 
1208
 
1208
;..................................... start 3/4 : modified by vhanla .................
1209
;..................................... start 3/4 : modified by vhanla .................
1209
	cmp [bPressedMouseXY_W],1
-
 
1210
	jb  .first
1210
	cmp [bPressedMouseXY_W],1
1211
	ja  @f
1211
	ja  @f
1212
	inc [bPressedMouseXY_W]
1212
	inc [bPressedMouseXY_W]
1213
	jmp @f
1213
	jnc @f
1214
.first:
1214
	;mov ax,[MOUSE_X]
1215
	mov [bPressedMouseXY_W],1
1215
	;mov [mx],ax
1216
	mov ax,[MOUSE_X]
1216
	;mov ax,[MOUSE_Y]
1217
	mov [mx],ax
1217
	;mov [my],ax
1218
	mov ax,[MOUSE_Y]
1218
	mov eax,dword[MOUSE_X]
1219
	mov [my],ax
1219
	mov dword[mx],eax
1220
	@@:
1220
      @@:
Line 1221... Line 1221...
1221
;..................................... end 3/4 : modified by vhanla ...................
1221
;..................................... end 3/4 : modified by vhanla ...................
1222
 
1222
 
Line 1257... Line 1257...
1257
	mov   ebx, [TASK_COUNT]
1257
	mov   ebx, [TASK_COUNT]
1258
	cmp   eax, ebx	    ; is this window active?
1258
	cmp   eax, ebx	    ; is this window active?
1259
	jz    .move_resize_window
1259
	jz    .move_resize_window
Line 1260... Line 1260...
1260
 
1260
 
1261
	cmp   [bPressedMouseXY_W], 1
1261
	cmp   [bPressedMouseXY_W], 1
Line 1262... Line 1262...
1262
	ja    .exit
1262
	ja    .exit_popa
1263
 
1263
 
1264
	; eax = position in windowing stack
1264
	; eax = position in windowing stack
1265
	; redraw must ?
1265
	; redraw must ?
-
 
1266
	lea   esi, [WIN_POS + esi * 2]
1266
	lea   esi, [WIN_POS + esi * 2]
1267
	call  waredraw
Line 1267... Line 1268...
1267
	call  waredraw
1268
      .exit_popa:
1268
	add   esp, 32
1269
	add   esp, 32
1269
 
1270