Rev 479 | Rev 549 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 479 | Rev 523 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | $Revision: 479 $ |
1 | $Revision: 523 $ |
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 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
5 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
6 | ;; Distributed under terms of the GNU General Public License ;; |
6 | ;; Distributed under terms of the GNU General Public License ;; |
Line 473... | Line 473... | ||
473 | ret |
473 | ret |
474 | no_get_skinmargins: |
474 | no_get_skinmargins: |
Line 475... | Line 475... | ||
475 | 475 | ||
476 | cmp eax,8 ; set window skin |
476 | cmp eax,8 ; set window skin |
477 | jne no_set_skin |
- | |
478 | mov eax,ebx |
- | |
479 | mov edi,[TASK_BASE] |
- | |
480 | add ebx,[edi+TASKDATA.mem_start] ; abs start of info block |
- | |
481 | pushd [ebx+0] [ebx+4] [ebx+8] [ebx+12] |
- | |
482 | mov dword[ebx+0],0 ; read |
477 | jne no_set_skin |
483 | mov dword[ebx+4],0 ; from the beginning |
478 | call read_skin_file |
484 | mov dword[ebx+8],64 ; 32 KBytes maximum |
479 | mov [esp+32+36], eax |
485 | mov ecx,skin_data+64*512 |
- | |
486 | sub ecx,[edi+0x10] |
- | |
487 | mov dword[ebx+12],ecx ; destination |
- | |
488 | push eax |
- | |
489 | pushad |
480 | test eax, eax |
490 | call file_system |
- | |
491 | popad |
481 | jnz .ret |
492 | pop eax |
482 | xor eax, eax |
493 | popd [ebx+12] [ebx+8] [ebx+4] [ebx+0] |
- | |
494 | cmp eax,ERROR_SUCCESS |
- | |
495 | je @f |
- | |
496 | cmp eax,ERROR_END_OF_FILE |
- | |
497 | jne .exit |
- | |
498 | @@: cmp [skin_data+64*512+SKIN_HEADER.ident],'SKIN' |
- | |
499 | mov eax,ERROR_UNKNOWN_FS |
- | |
500 | jne .exit |
- | |
501 | mov esi,skin_data+64*512 |
- | |
502 | mov edi,skin_data |
- | |
503 | mov ecx,(64*512)/4 |
- | |
504 | rep movsd |
- | |
505 | call parse_skin_data |
- | |
506 | pushad |
- | |
507 | mov eax, 0 |
- | |
508 | mov ebx, 0 |
483 | xor ebx, ebx |
509 | mov ecx, [ScreenWidth] |
484 | mov ecx, [ScreenWidth] |
510 | mov edx, [ScreenHeight] |
485 | mov edx, [ScreenHeight] |
511 | call calculatescreen |
- | |
512 | popad |
- | |
513 | mov dword[esp+32+36],0 |
486 | call calculatescreen |
514 | jmp redraw_screen_direct |
487 | jmp redraw_screen_direct |
515 | .exit: |
- | |
516 | mov [esp+32+36],eax |
488 | .ret: |
517 | popad |
489 | popad |
518 | ret |
490 | ret |
Line 519... | Line 491... | ||
519 | no_set_skin: |
491 | no_set_skin: |