Rev 8869 | Rev 8962 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8869 | Rev 8876 | ||
---|---|---|---|
Line 75... | Line 75... | ||
75 | format binary as "mnt" |
75 | format binary as "mnt" |
Line 76... | Line 76... | ||
76 | 76 | ||
77 | include 'macros.inc' |
77 | include 'macros.inc' |
Line 78... | Line 78... | ||
78 | include 'struct.inc' |
78 | include 'struct.inc' |
Line 79... | Line 79... | ||
79 | 79 | ||
80 | $Revision: 8869 $ |
80 | $Revision: 8876 $ |
Line 2361... | Line 2361... | ||
2361 | je .fail |
2361 | je .fail |
Line 2362... | Line 2362... | ||
2362 | 2362 | ||
2363 | mov eax, edx |
2363 | mov eax, edx |
Line 2364... | Line 2364... | ||
2364 | shl edx, 5 |
2364 | shl edx, 5 |
2365 | 2365 | ||
Line 2366... | Line 2366... | ||
2366 | cmp [edx + TASK_TABLE + TASKDATA.state], 9 |
2366 | cmp [edx + TASK_TABLE + TASKDATA.state], TSTATE_FREE |
2367 | je .fail |
2367 | je .fail |
Line 3604... | Line 3604... | ||
3604 | cmp edx, esi |
3604 | cmp edx, esi |
3605 | ja .skip |
3605 | ja .skip |
3606 | ;-------------------------------------- |
3606 | ;-------------------------------------- |
3607 | align 4 |
3607 | align 4 |
3608 | .set: |
3608 | .set: |
3609 | or [edi+SLOT_BASE+APPDATA.occurred_events], 100000b ; set event 6; TODO use constant |
3609 | or [edi+SLOT_BASE+APPDATA.occurred_events], EVENT_MOUSE |
3610 | ;-------------------------------------- |
3610 | ;-------------------------------------- |
3611 | align 4 |
3611 | align 4 |
3612 | .skip: |
3612 | .skip: |
3613 | loop .set_mouse_event |
3613 | loop .set_mouse_event |
Line 3672... | Line 3672... | ||
3672 | jmp .common |
3672 | jmp .common |
3673 | .set: |
3673 | .set: |
3674 | mov [edi+SLOT_BASE+APPDATA.draw_bgr_x], eax |
3674 | mov [edi+SLOT_BASE+APPDATA.draw_bgr_x], eax |
3675 | mov [edi+SLOT_BASE+APPDATA.draw_bgr_y], edx |
3675 | mov [edi+SLOT_BASE+APPDATA.draw_bgr_y], edx |
3676 | .common: |
3676 | .common: |
3677 | or [edi+SLOT_BASE+APPDATA.occurred_events], 10000b ; set event 5; TODO use constant |
3677 | or [edi+SLOT_BASE+APPDATA.occurred_events], EVENT_BACKGROUND |
3678 | loop set_bgr_event |
3678 | loop set_bgr_event |
3679 | pop edi ecx |
3679 | pop edi ecx |
3680 | ;--------- set event 5 stop ----------- |
3680 | ;--------- set event 5 stop ----------- |
3681 | dec [REDRAW_BACKGROUND] ; got new update request? |
3681 | dec [REDRAW_BACKGROUND] ; got new update request? |
3682 | jnz backgr |
3682 | jnz backgr |