Rev 9709 | Rev 9941 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9709 | Rev 9715 | ||
---|---|---|---|
Line 9... | Line 9... | ||
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: 9709 $ |
14 | $Revision: 9715 $ |
15 | 15 | ||
16 | ;------------------------------------------------------------------------------ |
16 | ;------------------------------------------------------------------------------ |
Line 494... | Line 494... | ||
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, [current_slot_idx] |
498 | mov eax, [current_slot_idx] |
499 | shl eax, 5 |
499 | shl eax, BSF sizeof.WDATA |
500 | add ebx, [eax+window_data+WDATA.box.top] |
500 | add ebx, [window_data + eax + WDATA.box.top] |
501 | mov eax, [eax+window_data+WDATA.box.left] |
501 | mov eax, [window_data + eax + WDATA.box.left] |
502 | add eax, [temp.cx] |
502 | add eax, [temp.cx] |
503 | and eax, 0xfff8 |
503 | and eax, 0xfff8 |
504 | shl ebx, 9 |
504 | shl ebx, 9 |
505 | lea ebx, [ebx+ebx*4] ; multiply by 5 |
505 | lea ebx, [ebx + ebx*4] ; multiply by 5 |
506 | lea ebx, [ebx+eax*4] ; + x*BytesPerPixel (Vesa2.0 32) |
506 | lea ebx, [ebx + eax*4] ; + x*BytesPerPixel (Vesa2.0 32) |