Rev 4197 | Rev 4880 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4197 | Rev 4735 | ||
---|---|---|---|
Line 150... | Line 150... | ||
150 | mov [curDay], eax |
150 | mov [curDay], eax |
151 | .no2000: |
151 | .no2000: |
152 | jmp upd |
152 | jmp upd |
153 | red: |
153 | red: |
Line 154... | Line 154... | ||
154 | 154 | ||
Line 155... | Line 155... | ||
155 | call draw_window |
155 | call define_window |
Line 156... | Line 156... | ||
156 | 156 | ||
157 | still: |
157 | still: |
Line 480... | Line 480... | ||
480 | shr ecx,8 |
480 | shr ecx,8 |
481 | add edx,22*65536 |
481 | add edx,22*65536 |
482 | mcall |
482 | mcall |
483 | ret |
483 | ret |
Line 484... | Line 484... | ||
484 | 484 | ||
Line 485... | Line 485... | ||
485 | draw_window: |
485 | define_window: |
486 | 486 | ||
487 | mcall 12,1 |
487 | mcall 12,1 |
488 | mcall 48,5 ;get screen size |
488 | mcall 48,5 ;get screen size |
Line 493... | Line 493... | ||
493 | mov ebx, eax |
493 | mov ebx, eax |
494 | sub eax, WIN_W |
494 | sub eax, WIN_W |
495 | shl ebx, 16 |
495 | shl ebx, 16 |
496 | add ebx, WIN_W |
496 | add ebx, WIN_W |
497 | mcall 0,,,COL_WINDOW_BG, ,title ; define window |
497 | mcall 0,,,COL_WINDOW_BG, ,title ; define window |
- | 498 | mcall 12,2 |
|
498 | GetSkinHeight |
499 | GetSkinHeight |
499 | mov ecx, eax |
500 | mov ecx, eax |
500 | shl ecx, 16 |
501 | shl ecx, 16 |
501 | add ecx, 43 |
502 | add ecx, 43 |
502 | mcall 13,B_WBAR_X, ,COL_TOOLBAR_BG ; draw toolbar background |
503 | mcall 13,B_WBAR_X, ,COL_TOOLBAR_BG ; draw toolbar background |
503 | mcall 13,B_WBAR_X,BT_WBAR_Y,COL_TOOLBAR_BG ; draw toolbar background |
504 | mcall 13,B_WBAR_X,BT_WBAR_Y,COL_TOOLBAR_BG ; draw toolbar background |
- | 505 | mcall 13,0*65536+B_WBAR_X,84*65536+199,0xE7E7E7 |
|
- | 506 | ||
- | 507 | draw_window: |
|
Line 504... | Line 508... | ||
504 | 508 | ||
505 | call draw_week |
509 | call draw_week |
506 | mcall 8,193*65536+8,287*65536+10,72,COL_TOOLBAR_BG |
510 | mcall 8,193*65536+8,287*65536+10,72,COL_TOOLBAR_BG |
507 | mov ebx,202*65536+8 |
511 | mov ebx,202*65536+8 |
Line 604... | Line 608... | ||
604 | mcall |
608 | mcall |
Line 605... | Line 609... | ||
605 | 609 | ||
606 | call draw_year |
610 | call draw_year |
607 | call draw_clock |
611 | call draw_clock |
608 | mov [dropped],0 |
- | |
609 | mcall 12,2 |
612 | mov [dropped],0 |
Line 610... | Line 613... | ||
610 | ret |
613 | ret |
611 | 614 | ||
612 | draw_year: |
615 | draw_year: |