Rev 9917 | Rev 9926 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9917 | Rev 9925 | ||
---|---|---|---|
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: 9917 $ |
80 | $Revision: 9925 $ |
Line 2641... | Line 2641... | ||
2641 | 2641 | ||
2642 | cmp ebx, 2 |
2642 | cmp ebx, 2 |
Line 2643... | Line 2643... | ||
2643 | jnz .srl1 |
2643 | jnz .srl1 |
2644 | 2644 | ||
2645 | mov edx, [current_slot_idx] ; return whole screen draw area for this app |
- | |
2646 | shl edx, BSF sizeof.RECT |
2645 | mov edx, [current_slot_idx] ; return whole screen draw area for this app |
2647 | add edx, draw_data |
2646 | shl edx, BSF sizeof.WDATA |
2648 | mov [edx + RECT.left], 0 |
2647 | mov [draw_data + edx + RECT.left], 0 |
2649 | mov [edx + RECT.top], 0 |
2648 | mov [draw_data + edx + RECT.top], 0 |
2650 | mov eax, [_display.width] |
2649 | mov eax, [_display.width] |
2651 | dec eax |
2650 | dec eax |
2652 | mov [edx + RECT.right], eax |
2651 | mov [draw_data + edx + RECT.right], eax |
2653 | mov eax, [_display.height] |
2652 | mov eax, [_display.height] |
Line 2654... | Line 2653... | ||
2654 | dec eax |
2653 | dec eax |
2655 | mov [edx + RECT.bottom], eax |
2654 | mov [draw_data + edx + RECT.bottom], eax |
Line 2656... | Line 2655... | ||
2656 | 2655 | ||
Line 2809... | Line 2808... | ||
2809 | xor edi, edi |
2808 | xor edi, edi |
2810 | mov ebx, window_data |
2809 | mov ebx, window_data |
Line 2811... | Line 2810... | ||
2811 | 2810 | ||
2812 | mov ecx, [thread_count] |
2811 | mov ecx, [thread_count] |
2813 | movzx eax, word [WIN_POS + ecx*2] ; active window |
2812 | movzx eax, word [WIN_POS + ecx*2] ; active window |
2814 | shl eax, BSF sizeof.APPDATA ;8 |
2813 | shl eax, BSF sizeof.APPDATA |
Line 2815... | Line 2814... | ||
2815 | push eax |
2814 | push eax |
2816 | 2815 | ||
2817 | movzx eax, word [MOUSE_X] |
2816 | movzx eax, word [MOUSE_X] |
Line 2864... | Line 2863... | ||
2864 | cmp [background_defined], 0 |
2863 | cmp [background_defined], 0 |
2865 | jz nobackgr |
2864 | jz nobackgr |
2866 | ;-------------------------------------- |
2865 | ;-------------------------------------- |
2867 | align 4 |
2866 | align 4 |
2868 | backgr: |
2867 | backgr: |
2869 | mov eax, [draw_data + sizeof.RECT + RECT.left] |
2868 | mov eax, [draw_data + sizeof.WDATA + RECT.left] |
2870 | shl eax, 16 |
2869 | shl eax, 16 |
2871 | add eax, [draw_data + sizeof.RECT + RECT.right] |
2870 | add eax, [draw_data + sizeof.WDATA + RECT.right] |
2872 | mov [BG_Rect_X_left_right], eax ; [left]*65536 + [right] |
2871 | mov [BG_Rect_X_left_right], eax ; [left]*65536 + [right] |
Line 2873... | Line 2872... | ||
2873 | 2872 | ||
2874 | mov eax, [draw_data + sizeof.RECT + RECT.top] |
2873 | mov eax, [draw_data + sizeof.WDATA + RECT.top] |
2875 | shl eax, 16 |
2874 | shl eax, 16 |
2876 | add eax, [draw_data + sizeof.RECT + RECT.bottom] |
2875 | add eax, [draw_data + sizeof.WDATA + RECT.bottom] |
Line 2877... | Line 2876... | ||
2877 | mov [BG_Rect_Y_top_bottom], eax ; [top]*65536 + [bottom] |
2876 | mov [BG_Rect_Y_top_bottom], eax ; [top]*65536 + [bottom] |
2878 | 2877 | ||
2879 | call drawbackground |
2878 | call drawbackground |
Line 2922... | Line 2921... | ||
2922 | ;--------- set event 5 stop ----------- |
2921 | ;--------- set event 5 stop ----------- |
2923 | dec [REDRAW_BACKGROUND] ; got new update request? |
2922 | dec [REDRAW_BACKGROUND] ; got new update request? |
2924 | jnz backgr |
2923 | jnz backgr |
Line 2925... | Line 2924... | ||
2925 | 2924 | ||
2926 | xor eax, eax |
2925 | xor eax, eax |
2927 | mov [draw_data + sizeof.RECT + RECT.left], eax |
2926 | mov [draw_data + sizeof.WDATA + RECT.left], eax |
2928 | mov [draw_data + sizeof.RECT + RECT.top], eax |
2927 | mov [draw_data + sizeof.WDATA + RECT.top], eax |
2929 | mov [draw_data + sizeof.RECT + RECT.right], eax |
2928 | mov [draw_data + sizeof.WDATA + RECT.right], eax |
2930 | mov [draw_data + sizeof.RECT + RECT.bottom], eax |
2929 | mov [draw_data + sizeof.WDATA + RECT.bottom], eax |
2931 | ;-------------------------------------- |
2930 | ;-------------------------------------- |
2932 | align 4 |
2931 | align 4 |
2933 | nobackgr: |
2932 | nobackgr: |
2934 | ; system shutdown request |
2933 | ; system shutdown request |