Rev 1929 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1929 | Rev 2014 | ||
---|---|---|---|
Line 379... | Line 379... | ||
379 | mov eax, [mouse.state.pos.x] |
379 | mov eax, [mouse.state.pos.x] |
380 | sub eax, [mouse.active_sys_window.delta.x] |
380 | sub eax, [mouse.active_sys_window.delta.x] |
381 | mov [mouse.active_sys_window.new_box.left], eax |
381 | mov [mouse.active_sys_window.new_box.left], eax |
382 | mov eax, [mouse.state.pos.y] |
382 | mov eax, [mouse.state.pos.y] |
383 | sub eax, [mouse.active_sys_window.delta.y] |
383 | sub eax, [mouse.active_sys_window.delta.y] |
384 | mov [mouse.active_sys_window.new_box.top], eax |
384 | mov [mouse.active_sys_window.new_box.top], eax |
Line 385... | Line 385... | ||
385 | 385 | ||
386 | mov eax, [mouse.active_sys_window.new_box.left] |
386 | mov eax, [mouse.active_sys_window.new_box.left] |
387 | or eax, eax |
387 | or eax, eax |
388 | jge @f |
388 | jge @f |
Line 511... | Line 511... | ||
511 | ;? mouse cursor within its bounds |
511 | ;? mouse cursor within its bounds |
512 | ;------------------------------------------------------------------------------ |
512 | ;------------------------------------------------------------------------------ |
513 | ;< esi = process slot |
513 | ;< esi = process slot |
514 | ;< edi = pointer to WDATA struct |
514 | ;< edi = pointer to WDATA struct |
515 | ;------------------------------------------------------------------------------ |
515 | ;------------------------------------------------------------------------------ |
516 | mov esi, [Screen_Max_X] |
516 | mov esi, [Screen_Max_X] |
517 | inc esi |
517 | inc esi |
518 | imul esi, [mouse.state.pos.y] |
518 | imul esi, [mouse.state.pos.y] |
519 | add esi, [_WinMapAddress] |
519 | add esi, [_WinMapAddress] |
520 | add esi, [mouse.state.pos.x] |
520 | add esi, [mouse.state.pos.x] |
521 | movzx esi, byte[esi] |
521 | movzx esi, byte[esi] |
522 | mov edi, esi |
522 | mov edi, esi |
523 | shl edi, 5 |
523 | shl edi, 5 |
524 | add edi, window_data |
524 | add edi, window_data |
525 | ret |
525 | ret |
Line 698... | Line 698... | ||
698 | xor eax, eax |
698 | xor eax, eax |
Line 699... | Line 699... | ||
699 | 699 | ||
700 | .exit: |
700 | .exit: |
Line 701... | Line 701... | ||
701 | ret |
701 | ret |
702 | 702 |