Rev 314 | Rev 381 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 314 | Rev 379 | ||
---|---|---|---|
Line 120... | Line 120... | ||
120 | shr eax, 16 |
120 | shr eax, 16 |
121 | mov [putimg.image_cx], eax |
121 | mov [putimg.image_cx], eax |
122 | mov [putimg.image_cy], edx |
122 | mov [putimg.image_cy], edx |
Line 123... | Line 123... | ||
123 | 123 | ||
124 | ; calculate absolute (i.e. screen) coordinates |
124 | ; calculate absolute (i.e. screen) coordinates |
125 | mov eax, [0x3010] |
125 | mov eax, [TASK_BASE] |
126 | mov ebx, [eax-twdw + WDATA.box.left] |
126 | mov ebx, [eax-twdw + WDATA.box.left] |
127 | add ebx, [putimg.image_cx] |
127 | add ebx, [putimg.image_cx] |
128 | mov [putimg.abs_cx], ebx |
128 | mov [putimg.abs_cx], ebx |
129 | mov ebx, [eax-twdw + WDATA.box.top] |
129 | mov ebx, [eax-twdw + WDATA.box.top] |
Line 209... | Line 209... | ||
209 | add eax, [putimg.abs_cx] |
209 | add eax, [putimg.abs_cx] |
210 | add eax, WinMapAddress |
210 | add eax, WinMapAddress |
211 | xchg eax, ebp |
211 | xchg eax, ebp |
Line 212... | Line 212... | ||
212 | 212 | ||
213 | ; get process number |
213 | ; get process number |
Line 214... | Line 214... | ||
214 | mov ebx, [0x3000] |
214 | mov ebx, [CURRENT_TASK] |
215 | 215 | ||
Line 216... | Line 216... | ||
216 | cmp byte [ScreenBPP], 32 |
216 | cmp byte [ScreenBPP], 32 |
Line 617... | Line 617... | ||
617 | mov [drbar.bar_sx], ecx |
617 | mov [drbar.bar_sx], ecx |
Line 618... | Line 618... | ||
618 | 618 | ||
619 | mov [drbar.bar_cx], eax |
619 | mov [drbar.bar_cx], eax |
Line 620... | Line 620... | ||
620 | mov [drbar.bar_cy], ebx |
620 | mov [drbar.bar_cy], ebx |
621 | 621 | ||
622 | mov edi, [0x3010] |
622 | mov edi, [TASK_BASE] |
623 | add eax, [edi-twdw + WDATA.box.left] ; win_cx |
623 | add eax, [edi-twdw + WDATA.box.left] ; win_cx |
624 | add ebx, [edi-twdw + WDATA.box.top] ; win_cy |
624 | add ebx, [edi-twdw + WDATA.box.top] ; win_cy |
Line 699... | Line 699... | ||
699 | add eax, [drbar.abs_cx] |
699 | add eax, [drbar.abs_cx] |
700 | add eax, WinMapAddress |
700 | add eax, WinMapAddress |
701 | xchg eax, ebp |
701 | xchg eax, ebp |
Line 702... | Line 702... | ||
702 | 702 | ||
703 | ; get process number |
703 | ; get process number |
Line 704... | Line 704... | ||
704 | mov ebx, [0x3000] |
704 | mov ebx, [CURRENT_TASK] |
705 | 705 | ||
706 | cmp byte [ScreenBPP], 24 |
706 | cmp byte [ScreenBPP], 24 |
707 | jne draw_bar_end_32 |
707 | jne draw_bar_end_32 |