Rev 469 | Rev 673 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 469 | Rev 527 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | $Revision: 469 $ |
1 | $Revision: 527 $ |
2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
3 | ;; ;; |
3 | ;; ;; |
4 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
4 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
6 | ;; ;; |
6 | ;; ;; |
Line 204... | Line 204... | ||
204 | push ebx |
204 | push ebx |
205 | push ecx |
205 | push ecx |
206 | push edx |
206 | push edx |
Line 207... | Line 207... | ||
207 | 207 | ||
208 | xor edx,edx |
208 | xor edx,edx |
209 | mov eax,dword[WinMapAddress-8] |
209 | mov eax,dword[BgrDataWidth] |
210 | mov ebx,dword[WinMapAddress-4] |
210 | mov ebx,dword[BgrDataHeight] |
211 | mul ebx |
211 | mul ebx |
212 | mov ebx,3 |
212 | mov ebx,3 |
213 | mul ebx |
213 | mul ebx |
214 | mov [imax],eax |
214 | mov [imax],eax |
Line 218... | Line 218... | ||
218 | 218 | ||
Line 219... | Line 219... | ||
219 | v12dp3: |
219 | v12dp3: |
220 | 220 | ||
221 | push eax |
- | |
Line 222... | Line 221... | ||
222 | push ebx |
221 | push eax |
223 | mov esi,[img_background] ;IMG_BACKGROUND |
222 | push ebx |
Line 224... | Line 223... | ||
224 | 223 | ||
Line 225... | Line 224... | ||
225 | cmp [WinMapAddress-12],dword 1 ; tiled background |
224 | cmp [BgrDrawMode],dword 1 ; tiled background |
226 | jne no_vesa12_tiled_bgr |
225 | jne no_vesa12_tiled_bgr |
227 | - | ||
228 | push edx |
- | |
Line 229... | Line 226... | ||
229 | 226 | ||
230 | xor edx,edx |
227 | push edx |
231 | mov ecx,[WinMapAddress-8] |
228 | |
232 | div ecx |
229 | xor edx,edx |
233 | mov eax,edx |
- | |
234 | 230 | div dword [BgrDataWidth] |
|
235 | push eax |
231 | |
Line 236... | Line 232... | ||
236 | mov eax,ebx |
232 | push edx |
Line 237... | Line 233... | ||
237 | xor edx,edx |
233 | mov eax,ebx |
Line 238... | Line 234... | ||
238 | mov ecx,[WinMapAddress-4] |
234 | xor edx,edx |
239 | div ecx |
235 | div dword [BgrDataHeight] |
Line 240... | Line 236... | ||
240 | mov ebx,edx |
236 | mov ebx,edx |
Line 241... | Line 237... | ||
241 | pop eax |
237 | pop eax |
242 | - | ||
243 | pop edx |
238 | |
244 | 239 | pop edx |
|
245 | no_vesa12_tiled_bgr: |
240 | |
Line 246... | Line 241... | ||
246 | 241 | no_vesa12_tiled_bgr: |
|
247 | cmp [WinMapAddress-12],dword 2 ; stretched background |
242 | |
248 | jne no_vesa12_stretched_bgr |
243 | cmp [BgrDrawMode],dword 2 ; stretched background |
249 | - | ||
250 | push edx |
244 | jne no_vesa12_stretched_bgr |
251 | 245 | ||
252 | imul eax,dword [WinMapAddress-8] |
246 | push edx |
253 | xor edx,edx |
247 | |
254 | mov ecx,[ScreenWidth] |
248 | mul dword [BgrDataWidth] |
Line 268... | Line 262... | ||
268 | pop edx |
262 | pop edx |
Line 269... | Line 263... | ||
269 | 263 | ||
Line 270... | Line -... | ||
270 | no_vesa12_stretched_bgr: |
- | |
271 | 264 | no_vesa12_stretched_bgr: |
|
272 | - | ||
273 | push eax |
- | |
274 | mov eax,ebx |
- | |
275 | xor edx,edx |
265 | |
276 | mov ebx,[WinMapAddress-8] |
- | |
277 | add ebx,[WinMapAddress-8] |
- | |
278 | add ebx,[WinMapAddress-8] |
- | |
279 | mul ebx |
- | |
280 | mov esi,eax |
- | |
281 | pop eax |
266 | |
- | 267 | mov esi,ebx |
|
282 | add esi,eax |
268 | imul esi, dword [BgrDataWidth] |
283 | add esi,eax |
269 | add esi,eax |
284 | add esi,eax |
270 | lea esi,[esi*3] |
Line 285... | Line 271... | ||
285 | add esi,[img_background] ;IMG_BACKGROUND |
271 | add esi,[img_background] ;IMG_BACKGROUND |
Line -... | Line 272... | ||
- | 272 | pop ebx |
|
- | 273 | pop eax |
|
286 | pop ebx |
274 | |
287 | pop eax |
275 | v12di4: |
288 | 276 | ||
289 | v12di4: |
277 | mov cl,[esi+2] |
290 | 278 | shl ecx,16 |
|
291 | mov ecx,[esi] |
279 | mov cx,[esi] |
292 | pusha |
280 | pusha |
293 | mov esi,eax |
- | |
294 | mov edi,ebx |
281 | mov esi,eax |
295 | mov eax,[ScreenWidth] |
- | |
296 | add eax,1 |
282 | mov edi,ebx |
297 | mul ebx |
283 | mov eax,[ScreenWidth] |
298 | add eax,esi |
284 | add eax,1 |
299 | add eax,WinMapAddress |
285 | mul ebx |
300 | cmp [eax],byte 1 |
286 | cmp [eax+esi+WinMapAddress],byte 1 |