Subversion Repositories Kolibri OS

Rev

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

Rev 281 Rev 379
Line 263... Line 263...
263
      cmp  dword [0xf204],dword 0
263
      cmp  dword [0xf204],dword 0
264
      je    @f
264
      je    @f
265
      ret
265
      ret
266
@@:
266
@@:
267
      pushad
267
      pushad
268
      cmp  [0x3000],dword 1
268
      cmp  [CURRENT_TASK],dword 1
269
      je   disable_m
269
      je   disable_m
270
      mov  edx,[0x3000]
270
      mov  edx,[CURRENT_TASK]
271
      shl  edx,5
271
      shl  edx,5
272
      add  edx,window_data
272
      add  edx,window_data
273
      movzx  eax, word [0xfb0a]
273
      movzx  eax, word [0xfb0a]
274
      movzx  ebx, word [0xfb0c]
274
      movzx  ebx, word [0xfb0c]
275
      mov  ecx,[0xfe00]
275
      mov  ecx,[0xfe00]
276
      inc  ecx
276
      inc  ecx
277
      imul  ecx,ebx
277
      imul  ecx,ebx
278
      add  ecx,eax
278
      add  ecx,eax
279
      add  ecx, display_data
279
      add  ecx, display_data
280
      mov   eax, [0x3000]
280
      mov   eax, [CURRENT_TASK]
281
      movzx ebx, byte [ecx]
281
      movzx ebx, byte [ecx]
282
      cmp   eax,ebx
282
      cmp   eax,ebx
283
      je    yes_mouse_disable
283
      je    yes_mouse_disable
284
      movzx ebx, byte [ecx+16]
284
      movzx ebx, byte [ecx+16]
285
      cmp   eax,ebx
285
      cmp   eax,ebx
Line 294... Line 294...
294
      movzx ebx, byte [ecx+16]
294
      movzx ebx, byte [ecx+16]
295
      cmp   eax,ebx
295
      cmp   eax,ebx
296
      je    yes_mouse_disable
296
      je    yes_mouse_disable
297
      jmp   no_mouse_disable
297
      jmp   no_mouse_disable
298
yes_mouse_disable:
298
yes_mouse_disable:
299
      mov  edx,[0x3000]
299
      mov  edx,[CURRENT_TASK]
300
      shl  edx,5
300
      shl  edx,5
301
      add  edx,window_data
301
      add  edx,window_data
302
      movzx  eax, word [0xfb0a]
302
      movzx  eax, word [0xfb0a]
303
      movzx  ebx, word [0xfb0c]
303
      movzx  ebx, word [0xfb0c]
304
      mov  ecx,[edx+0]   ; mouse inside the area ?
304
      mov  ecx,[edx+0]   ; mouse inside the area ?