Rev 2452 | Rev 2455 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2452 | Rev 2453 | ||
---|---|---|---|
Line 67... | Line 67... | ||
67 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
67 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 68... | Line 68... | ||
68 | 68 | ||
69 | include 'macros.inc' |
69 | include 'macros.inc' |
Line 70... | Line 70... | ||
70 | include 'struct.inc' |
70 | include 'struct.inc' |
Line 71... | Line 71... | ||
71 | 71 | ||
Line 72... | Line 72... | ||
72 | $Revision: 2452 $ |
72 | $Revision: 2453 $ |
Line 1040... | Line 1040... | ||
1040 | ; MAIN OS LOOP START ; |
1040 | ; MAIN OS LOOP START ; |
1041 | ; ; |
1041 | ; ; |
1042 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1042 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1043 | align 32 |
1043 | align 32 |
1044 | osloop: |
1044 | osloop: |
1045 | call [draw_pointer] |
1045 | ; call [draw_pointer] |
- | 1046 | call __sys_draw_pointer |
|
1046 | call window_check_events |
1047 | call window_check_events |
1047 | call mouse_check_events |
1048 | call mouse_check_events |
1048 | call checkmisc |
1049 | call checkmisc |
1049 | call checkVga_N13 |
1050 | call checkVga_N13 |
1050 | call stack_handler |
1051 | call stack_handler |
Line 1972... | Line 1973... | ||
1972 | push esi |
1973 | push esi |
1973 | call [_display.select_cursor] |
1974 | call [_display.select_cursor] |
1974 | mov [current_cursor], esi |
1975 | mov [current_cursor], esi |
1975 | @@: |
1976 | @@: |
1976 | mov [redrawmouse_unconditional], 1 |
1977 | mov [redrawmouse_unconditional], 1 |
1977 | call [draw_pointer] |
1978 | ; call [draw_pointer] |
- | 1979 | call __sys_draw_pointer |
|
1978 | ret |
1980 | ret |
1979 | ;------------------------------------------------------------------------------ |
1981 | ;------------------------------------------------------------------------------ |
1980 | iglobal |
1982 | iglobal |
1981 | align 4 |
1983 | align 4 |
1982 | sys_system_table: |
1984 | sys_system_table: |
Line 3743... | Line 3745... | ||
3743 | drawbackground: |
3745 | drawbackground: |
3744 | dbrv20: |
3746 | dbrv20: |
3745 | cmp [BgrDrawMode], dword 1 |
3747 | cmp [BgrDrawMode], dword 1 |
3746 | jne bgrstr |
3748 | jne bgrstr |
3747 | call vesa20_drawbackground_tiled |
3749 | call vesa20_drawbackground_tiled |
3748 | call [draw_pointer] |
3750 | ; call [draw_pointer] |
- | 3751 | call __sys_draw_pointer |
|
3749 | ret |
3752 | ret |
3750 | ;-------------------------------------- |
3753 | ;-------------------------------------- |
3751 | align 4 |
3754 | align 4 |
3752 | bgrstr: |
3755 | bgrstr: |
3753 | call vesa20_drawbackground_stretch |
3756 | call vesa20_drawbackground_stretch |
3754 | call [draw_pointer] |
3757 | ; call [draw_pointer] |
- | 3758 | call __sys_draw_pointer |
|
3755 | ret |
3759 | ret |
3756 | ;----------------------------------------------------------------------------- |
3760 | ;----------------------------------------------------------------------------- |
3757 | align 4 |
3761 | align 4 |
3758 | syscall_putimage: ; PutImage |
3762 | syscall_putimage: ; PutImage |
3759 | sys_putimage: |
3763 | sys_putimage: |
Line 4521... | Line 4525... | ||
4521 | mov edi, [current_slot] |
4525 | mov edi, [current_slot] |
4522 | add eax, [edi+APPDATA.wnd_clientbox.left] |
4526 | add eax, [edi+APPDATA.wnd_clientbox.left] |
4523 | add ebx, [edi+APPDATA.wnd_clientbox.top] |
4527 | add ebx, [edi+APPDATA.wnd_clientbox.top] |
4524 | xor edi, edi ; no force |
4528 | xor edi, edi ; no force |
4525 | and ecx, 0xFBFFFFFF ;negate 0x04000000 save to mouseunder area |
4529 | and ecx, 0xFBFFFFFF ;negate 0x04000000 save to mouseunder area |
4526 | jmp [putpixel] |
4530 | ; jmp [putpixel] |
- | 4531 | jmp __sys_putpixel |
|
Line 4527... | Line 4532... | ||
4527 | 4532 | ||
Line 4528... | Line 4533... | ||
4528 | align 4 |
4533 | align 4 |
Line 4578... | Line 4583... | ||
4578 | 4583 | ||
4579 | add eax, [esi + APPDATA.wnd_clientbox.left] |
4584 | add eax, [esi + APPDATA.wnd_clientbox.left] |
4580 | add ebx, [esi + APPDATA.wnd_clientbox.top] |
4585 | add ebx, [esi + APPDATA.wnd_clientbox.top] |
4581 | add ecx, eax |
4586 | add ecx, eax |
4582 | add edx, ebx |
4587 | add edx, ebx |
- | 4588 | ; jmp [drawbar] |
|
4583 | jmp [drawbar] |
4589 | jmp vesa20_drawbar |
4584 | .drectr: |
4590 | .drectr: |
Line 4585... | Line 4591... | ||
4585 | ret |
4591 | ret |
4586 | 4592 | ||
Line 4749... | Line 4755... | ||
4749 | add ebp, ecx |
4755 | add ebp, ecx |
4750 | shl ebx, 16 |
4756 | shl ebx, 16 |
4751 | xor edi, edi |
4757 | xor edi, edi |
4752 | add ebx, ebp |
4758 | add ebx, ebp |
4753 | mov ecx, edx |
4759 | mov ecx, edx |
4754 | jmp [draw_line] |
4760 | ; jmp [draw_line] |
4755 | - | ||
- | 4761 | jmp __sys_draw_line |
|
Line 4756... | Line 4762... | ||
4756 | 4762 | ||
4757 | 4763 |