Rev 381 | Rev 425 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 381 | Rev 389 | ||
---|---|---|---|
Line 98... | Line 98... | ||
98 | push ebx |
98 | push ebx |
Line 99... | Line 99... | ||
99 | 99 | ||
100 | mov ecx, [ScreenWidth] |
100 | mov ecx, [ScreenWidth] |
101 | inc ecx |
101 | inc ecx |
- | 102 | mul ecx |
|
102 | mul ecx |
103 | |
103 | movzx edx, byte [display_data+ebx+eax] |
104 | movzx edx, byte [display_data+ebx+eax] |
104 | shl edx, 8 |
105 | shl edx, 8 |
Line 105... | Line 106... | ||
105 | mov ecx, [edx+SLOT_BASE+APPDATA.cursor] |
106 | mov ecx, [edx+SLOT_BASE+APPDATA.cursor] |
Line 318... | Line 319... | ||
318 | cmp ebx,ecx |
319 | cmp ebx,ecx |
319 | jg no_mouse_disable |
320 | jg no_mouse_disable |
320 | disable_m: |
321 | disable_m: |
321 | cmp dword [MOUSE_VISIBLE],dword 0 |
322 | cmp dword [MOUSE_VISIBLE],dword 0 |
322 | jne no_mouse_disable |
323 | jne no_mouse_disable |
- | 324 | pushf |
|
323 | cli |
325 | cli |
324 | call draw_mouse_under |
326 | call draw_mouse_under |
325 | sti |
327 | popf |
326 | mov [MOUSE_VISIBLE],dword 1 |
328 | mov [MOUSE_VISIBLE],dword 1 |
327 | no_mouse_disable: |
329 | no_mouse_disable: |
328 | popad |
330 | popad |
329 | ret |
331 | ret |
Line 348... | Line 350... | ||
348 | cmp dword [MOUSE_VISIBLE],dword 0 ; mouse visible ? |
350 | cmp dword [MOUSE_VISIBLE],dword 0 ; mouse visible ? |
349 | je chms00 |
351 | je chms00 |
350 | mov [MOUSE_VISIBLE], dword 0 |
352 | mov [MOUSE_VISIBLE], dword 0 |
351 | movzx ebx,word [MOUSE_Y] |
353 | movzx ebx,word [MOUSE_Y] |
352 | movzx eax,word [MOUSE_X] |
354 | movzx eax,word [MOUSE_X] |
- | 355 | pushfd |
|
353 | cli |
356 | cli |
354 | call save_draw_mouse |
357 | call save_draw_mouse |
355 | sti |
358 | popfd |
356 | nodmu2: |
359 | nodmu2: |
357 | popad |
360 | popad |
358 | ret |
361 | ret |
359 | chms00: |
362 | chms00: |
360 | movzx ecx,word [X_UNDER] |
363 | movzx ecx,word [X_UNDER] |
Line 365... | Line 368... | ||
365 | jne redrawmouse |
368 | jne redrawmouse |
366 | cmp ebx,edx |
369 | cmp ebx,edx |
367 | jne redrawmouse |
370 | jne redrawmouse |
368 | jmp nodmp |
371 | jmp nodmp |
369 | redrawmouse: |
372 | redrawmouse: |
- | 373 | pushfd |
|
370 | cli |
374 | cli |
371 | call draw_mouse_under |
375 | call draw_mouse_under |
372 | call save_draw_mouse |
376 | call save_draw_mouse |
373 | sti |
377 | popfd |
374 | nodmp: |
378 | nodmp: |
375 | popad |
379 | popad |
376 | ret |
380 | ret |