Subversion Repositories Kolibri OS

Rev

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

Rev 739 Rev 753
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 739 $
8
$Revision: 753 $
9
 
9
 
10
 
10
 
Line 106... Line 106...
106
        movzx  eax,word [MOUSE_Y]
106
        movzx  eax,word [MOUSE_Y]
107
        movzx  ebx,word [MOUSE_X]
107
        movzx  ebx,word [MOUSE_X]
108
        push eax
108
        push eax
109
        push ebx
109
        push ebx
Line 110... Line 110...
110
 
110
 
111
        mov ecx, [ScreenWidth]
111
        mov ecx, [Screen_Max_X]
112
        inc ecx
112
        inc ecx
Line 113... Line 113...
113
        mul ecx
113
        mul ecx
114
 
114
 
Line 290... Line 290...
290
      mov  edx,[CURRENT_TASK]
290
      mov  edx,[CURRENT_TASK]
291
      shl  edx,5
291
      shl  edx,5
292
      add  edx,window_data
292
      add  edx,window_data
293
      movzx  eax, word [MOUSE_X]
293
      movzx  eax, word [MOUSE_X]
294
      movzx  ebx, word [MOUSE_Y]
294
      movzx  ebx, word [MOUSE_Y]
295
      mov  ecx,[ScreenWidth]
295
      mov  ecx,[Screen_Max_X]
296
      inc  ecx
296
      inc  ecx
297
      imul  ecx,ebx
297
      imul  ecx,ebx
298
      add  ecx,eax
298
      add  ecx,eax
299
      add  ecx, display_data
299
      add  ecx, display_data
300
      mov   eax, [CURRENT_TASK]
300
      mov   eax, [CURRENT_TASK]
Line 302... Line 302...
302
      cmp   eax,ebx
302
      cmp   eax,ebx
303
      je    yes_mouse_disable
303
      je    yes_mouse_disable
304
      movzx ebx, byte [ecx+16]
304
      movzx ebx, byte [ecx+16]
305
      cmp   eax,ebx
305
      cmp   eax,ebx
306
      je    yes_mouse_disable
306
      je    yes_mouse_disable
307
      mov   ebx,[ScreenWidth]
307
      mov   ebx,[Screen_Max_X]
308
      inc   ebx
308
      inc   ebx
309
      imul  ebx,10
309
      imul  ebx,10
310
      add   ecx,ebx
310
      add   ecx,ebx
311
      movzx ebx, byte [ecx]
311
      movzx ebx, byte [ecx]
312
      cmp   eax,ebx
312
      cmp   eax,ebx
Line 409... Line 409...
409
    cmp  ax,0
409
    cmp  ax,0
410
    jge  @@M1
410
    jge  @@M1
411
    mov  eax,0
411
    mov  eax,0
412
    jmp  @@M2
412
    jmp  @@M2
413
@@M1:
413
@@M1:
414
    cmp  ax,[ScreenWidth]   ;ScreenLength
414
    cmp  ax,[Screen_Max_X]   ;ScreenLength
415
    jl   @@M2
415
    jl   @@M2
416
    mov  ax,[ScreenWidth]   ;ScreenLength-1
416
    mov  ax,[Screen_Max_X]   ;ScreenLength-1
Line 417... Line 417...
417
 
417
 
418
@@M2:
418
@@M2:
Line 419... Line 419...
419
    mov  [MOUSE_X],ax     ;[XCoordinate]
419
    mov  [MOUSE_X],ax     ;[XCoordinate]
Line 426... Line 426...
426
    cmp  ax,0
426
    cmp  ax,0
427
    jge  @@M3
427
    jge  @@M3
428
    mov  ax,0
428
    mov  ax,0
429
    jmp  @@M4
429
    jmp  @@M4
430
@@M3:
430
@@M3:
431
    cmp  ax,[ScreenHeight]  ;ScreenHeigth
431
    cmp  ax,[Screen_Max_Y]  ;ScreenHeigth
432
    jl   @@M4
432
    jl   @@M4
433
    mov  ax,[ScreenHeight] ;ScreenHeigth-1
433
    mov  ax,[Screen_Max_Y] ;ScreenHeigth-1
Line 434... Line 434...
434
 
434
 
435
@@M4:
435
@@M4:
Line 436... Line 436...
436
    mov  [MOUSE_Y],ax     ;[YCoordinate]
436
    mov  [MOUSE_Y],ax     ;[YCoordinate]