Subversion Repositories Kolibri OS

Rev

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

Rev 389 Rev 415
Line 1187... Line 1187...
1187
  .continue:
1187
  .continue:
1188
  .no_minimizing:
1188
  .no_minimizing:
Line 1189... Line 1189...
1189
 
1189
 
1190
        cmp   [BTN_DOWN],byte 0    ; mouse buttons pressed ?
1190
	cmp   [BTN_DOWN],byte 0    ; mouse buttons pressed ?
-
 
1191
	jne  .mouse_buttons_pressed
-
 
1192
;..................................... start 1/4 : modified by vhanla .................
-
 
1193
	mov [bPressedMouseXY_W],0
1191
        jne   .mouse_buttons_pressed
1194
;..................................... end 1/4 : modified by vhanla ...................
1192
        popad
1195
	popad
1193
        ret
1196
	ret
-
 
1197
    .mouse_buttons_pressed:
-
 
1198
;..................................... start 2/4 : modified by vhanla .................
-
 
1199
	jmp @f
1194
    .mouse_buttons_pressed:
1200
	bPressedMouseXY_W db 0x0
-
 
1201
	@@:
1195
 
1202
;..................................... end 2/4 : modified by vhanla ...................
1196
        mov   esi,[TASK_COUNT]
1203
	mov   esi,[TASK_COUNT]
Line -... Line 1204...
-
 
1204
	inc   esi
-
 
1205
 
-
 
1206
;..................................... start 3/4 : modified by vhanla .................
-
 
1207
	push ax
-
 
1208
	cmp [bPressedMouseXY_W],0
-
 
1209
	jnz @f
-
 
1210
	mov [bPressedMouseXY_W],1
-
 
1211
	mov ax,[MOUSE_X]
-
 
1212
	mov [mx],ax
-
 
1213
	mov ax,[MOUSE_Y]
-
 
1214
	mov [my],ax
-
 
1215
	@@:
-
 
1216
	pop ax
1197
        inc   esi
1217
;..................................... end 3/4 : modified by vhanla ...................
1198
 
1218
 
1199
      cwloop:
1219
      cwloop:
Line 1200... Line 1220...
1200
        cmp   esi,2
1220
	cmp   esi,2
Line 1211... Line 1231...
1211
        mov   eax,ecx
1231
	mov   eax,ecx
1212
        mov   ebx,edx
1232
	mov   ebx,edx
1213
        test    [edi+WDATA.fl_wstate],WSTATE_MINIMIZED
1233
	test	[edi+WDATA.fl_wstate],WSTATE_MINIMIZED
1214
        jnz     cwloop
1234
	jnz	cwloop
Line -... Line 1235...
-
 
1235
 
1215
 
1236
;..................................... start 4/4 : modified by vhanla .................
1216
       movzx  eax, word [MOUSE_X]
1237
       movzx  eax, word [mx]; movzx eax,word[MOUSE_X]
1217
       movzx  ebx, word [MOUSE_Y]
-
 
-
 
1238
       movzx  ebx, word [my]; movzx ebx,word[MOUSE_Y]
1218
 
1239
;..................................... endt 4/4 : modified by vhanla ..................
1219
        cmp   ecx, eax
1240
	cmp   ecx, eax
1220
        jae   cwloop
1241
	jae   cwloop
1221
        cmp   edx, ebx
1242
	cmp   edx, ebx
1222
        jae   cwloop
1243
	jae   cwloop