Subversion Repositories Kolibri OS

Rev

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

Rev 33 Rev 36
Line 259... Line 259...
259
      ret
259
      ret
Line 260... Line 260...
260
 
260
 
Line 261... Line 261...
261
 
261
 
262
__sys_disable_mouse:
-
 
263
 
262
__sys_disable_mouse:
264
      cli
263
      
-
 
264
 
-
 
265
      cmp  dword [0xf204],dword 0
-
 
266
      je    @f
-
 
267
      ret
Line 265... Line 268...
265
      pushad
268
    @@:  
266
      cmp  dword [0xf204],dword 0
269
;      cli
Line 267... Line 270...
267
      jne  no_mouse_disable
270
      pushad
Line 343... Line 346...
343
      jg   no_mouse_disable
346
      jg   no_mouse_disable
Line 344... Line 347...
344
 
347
 
345
    disable_m:
348
    disable_m:
346
      cmp  dword [0xf204],dword 0
349
      cmp  dword [0xf204],dword 0
-
 
350
      jne  @f
347
      jne  @f
351
      cli
-
 
352
       call draw_mouse_under
348
       call draw_mouse_under
353
      sti
349
;    @@:
354
;    @@:
350
      mov  [0xf204],dword 1
355
      mov  [0xf204],dword 1
351
;       inc  dword [0xf204]
356
;       inc  dword [0xf204]
Line 352... Line 357...
352
    @@:
357
    @@:
-
 
358
    
353
    
359
    no_mouse_disable:
354
    no_mouse_disable:
360
 
355
      popad
361
      popad
Line 356... Line 362...
356
      sti
362
;      sti
357
      ret
363
      ret
358
 
-
 
359
__sys_draw_pointer:
-
 
360
        cli
364
 
361
        pushad
365
__sys_draw_pointer:
362
     m_pause_1:
-
 
363
        cmp   [mouse_pause],0
-
 
364
        je    @f
366
 
365
;        call    change_task
367
        cmp   [mouse_pause],0
-
 
368
        je    @f
-
 
369
        ret
-
 
370
     @@:
-
 
371
        push   eax
-
 
372
        mov     eax,[timer_ticks]
-
 
373
        sub     eax,[MouseTickCounter]
-
 
374
        cmp     eax,1
-
 
375
        ja      @f
-
 
376
        pop    eax
-
 
377
        ret
-
 
378
     @@:
366
;        jmp  m_pause_1
379
        mov     eax,[timer_ticks]
-
 
380
        mov     [MouseTickCounter],eax
-
 
381
        pop     eax
367
        jmp   nodmp
382
;        cli
368
     @@:
383
 
Line 369... Line 384...
369
;        cli
384
        pushad
370
        cmp    dword [0xf204],dword 0  ; mouse visible ?
385
        cmp    dword [0xf204],dword 0  ; mouse visible ?
371
        je     chms00
386
        je     chms00
-
 
387
 
372
 
388
        mov     [0xf204], dword 0
373
        mov     [0xf204], dword 0
389
        movzx  ebx,word [0xfb0c]
374
        movzx  ebx,word [0xfb0c]
390
        movzx  eax,word [0xfb0a]
375
        movzx  eax,word [0xfb0a]
391
        cli
376
        call   save_draw_mouse
392
        call   save_draw_mouse
377
 
393
        sti
Line 378... Line 394...
378
      nodmu2:
394
      nodmu2:
Line 379... Line 395...
379
        popad
395
        popad
Line 395... Line 411...
395
        jne    redrawmouse
411
        jne    redrawmouse
Line 396... Line 412...
396
 
412
 
Line 397... Line 413...
397
        jmp    nodmp
413
        jmp    nodmp
398
 
414
 
399
      redrawmouse:
415
      redrawmouse:
400
       
416
        cli
401
        call   draw_mouse_under
417
        call   draw_mouse_under
402
        call   save_draw_mouse
418
        call   save_draw_mouse
403
 
-
 
404
    nodmp:
419
        sti
405
 
420
    nodmp:
406
        popad
421
        popad