Rev 379 | Rev 424 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 379 | Rev 381 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | include "skindata.inc" |
1 | include "skindata.inc" |
Line 2... | Line 2... | ||
2 | 2 | ||
Line 3... | Line 3... | ||
3 | skin_data = 0x00778000 |
3 | ;skin_data = 0x00778000 |
4 | 4 | ||
5 | load_skin_file: |
5 | load_skin_file: |
6 | ; eax = filename |
6 | ; eax = filename |
Line 353... | Line 353... | ||
353 | 353 | ||
354 | cmp dword[skin_data],'SKIN' |
354 | cmp dword[skin_data],'SKIN' |
Line 355... | Line 355... | ||
355 | jne no_skin_add_button |
355 | jne no_skin_add_button |
356 | 356 | ||
357 | ;* close button |
357 | ;* close button |
358 | mov edi,[0xfe88] |
358 | mov edi,[BTN_ADDR] |
359 | movzx eax,word [edi] |
359 | movzx eax,word [edi] |
360 | cmp eax,1000 |
360 | cmp eax,1000 |
361 | jge no_skin_add_button |
361 | jge no_skin_add_button |
Line 392... | Line 392... | ||
392 | mov ebx,[skin_btn_close.height] |
392 | mov ebx,[skin_btn_close.height] |
393 | dec ebx |
393 | dec ebx |
394 | mov [eax],bx |
394 | mov [eax],bx |
Line 395... | Line 395... | ||
395 | 395 | ||
396 | ;* minimize button |
396 | ;* minimize button |
397 | mov edi,[0xfe88] |
397 | mov edi,[BTN_ADDR] |
398 | movzx eax,word [edi] |
398 | movzx eax,word [edi] |
399 | cmp eax,1000 |
399 | cmp eax,1000 |
400 | jge no_skin_add_button |
400 | jge no_skin_add_button |
401 | inc eax |
401 | inc eax |