Rev 8053 | Rev 9709 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8053 | Rev 9606 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;; VGA.INC ;; |
6 | ;; VGA.INC ;; |
7 | ;; ;; |
7 | ;; ;; |
8 | ;; 640x480 mode 0x12 VGA functions for MenuetOS ;; |
8 | ;; 640x480 mode 0x12 VGA functions for MenuetOS ;; |
9 | ;; ;; |
9 | ;; ;; |
10 | ;; Paul Butcher, paul.butcher@asa.co.uk ;; |
10 | ;; Paul Butcher, paul.butcher@asa.co.uk ;; |
11 | ;; ;; |
11 | ;; ;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 13... | Line 13... | ||
13 | 13 | ||
Line 14... | Line 14... | ||
14 | $Revision: 8053 $ |
14 | $Revision: 9606 $ |
15 | 15 | ||
16 | ;------------------------------------------------------------------------------ |
16 | ;------------------------------------------------------------------------------ |
Line 166... | Line 166... | ||
166 | ret |
166 | ret |
167 | ;-------------------------------------- |
167 | ;-------------------------------------- |
168 | align 4 |
168 | align 4 |
169 | novesal: |
169 | novesal: |
170 | mov [novesachecksum], ecx |
170 | mov [novesachecksum], ecx |
171 | mov ecx, 0 |
171 | xor ecx, ecx ;mov ecx, 0 |
172 | movzx eax, word [MOUSE_Y] |
172 | movzx eax, word [MOUSE_Y] |
173 | cmp eax, 100 |
173 | cmp eax, 100 |
174 | jge m13l3 |
174 | jge m13l3 |
175 | mov eax, 100 |
175 | mov eax, 100 |
176 | ;-------------------------------------- |
176 | ;-------------------------------------- |
Line 493... | Line 493... | ||
493 | ret |
493 | ret |
494 | ;------------------------------------------------------------------------------ |
494 | ;------------------------------------------------------------------------------ |
495 | align 4 |
495 | align 4 |
496 | VGA_draw_bar_1: |
496 | VGA_draw_bar_1: |
497 | mov [temp.cx], eax |
497 | mov [temp.cx], eax |
498 | mov eax, [TASK_BASE] |
498 | ;mov eax, [TASK_BASE] |
499 | add ebx, [eax-twdw + 4] |
499 | ;add ebx, [eax-twdw + 4] |
500 | mov eax, [eax-twdw + 0] |
500 | ;mov eax, [eax-twdw + 0] |
- | 501 | mov eax, [current_slot_idx] |
|
- | 502 | shl eax, 5 |
|
- | 503 | add ebx, [eax+window_data+WDATA.box.top] |
|
- | 504 | mov eax, [eax+window_data+WDATA.box.left] |
|
501 | add eax, [temp.cx] |
505 | add eax, [temp.cx] |
502 | and eax, 0xfff8 |
506 | and eax, 0xfff8 |
503 | shl ebx, 9 |
507 | shl ebx, 9 |
504 | lea ebx, [ebx+ebx*4] ; multiply by 5 |
508 | lea ebx, [ebx+ebx*4] ; multiply by 5 |
505 | lea ebx, [ebx+eax*4] ; + x*BytesPerPixel (Vesa2.0 32) |
509 | lea ebx, [ebx+eax*4] ; + x*BytesPerPixel (Vesa2.0 32) |