Rev 3891 | Rev 3894 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3891 | Rev 3892 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ; Calendar for KolibriOS |
1 | ; Calendar for KolibriOS |
2 | ; |
2 | ; |
3 | ; v1.2 - v1.4 - new desighn and functionality by Leency |
3 | ; v1.2 - v1.45 - new desighn and functionality by Leency |
4 | ; v1.1 - add change time support by DedOK |
4 | ; v1.1 - add change time support by DedOK |
5 | ; v1.0 - written in pure assembler by Ivushkin Andrey aka Willow |
5 | ; v1.0 - written in pure assembler by Ivushkin Andrey aka Willow |
6 | ; also - diamond, spraid, fedesco |
6 | ; also - diamond, spraid, fedesco |
7 | ; |
7 | ; |
8 | ; Created: November 1, 2004 |
8 | ; Created: November 1, 2004 |
Line 712... | Line 712... | ||
712 | add edx,200+1 shl 29 |
712 | add edx,200+1 shl 29 |
713 | mcall 8 |
713 | mcall 8 |
714 | cmp [focus],4 |
714 | cmp [focus],4 |
715 | jne .not_active |
715 | jne .not_active |
716 | DrawRect COL_DATE_ACTIVE_1,COL_DATE_ACTIVE_2,COL_DATE_ACTIVE_3,COL_DATE_ACTIVE_4 |
716 | DrawRect COL_DATE_ACTIVE_1,COL_DATE_ACTIVE_2,COL_DATE_ACTIVE_3,COL_DATE_ACTIVE_4 |
717 | jmp .after_draw_but |
717 | jmp .out |
718 | .not_active: |
718 | .not_active: |
719 | DrawRect COL_DATE_INACTIVE_1,COL_DATE_INACTIVE_2,COL_DATE_INACTIVE_3,COL_DATE_INACTIVE_4 |
719 | DrawRect COL_DATE_INACTIVE_1,COL_DATE_INACTIVE_2,COL_DATE_INACTIVE_3,COL_DATE_INACTIVE_4 |
720 | jmp .after_draw_but |
720 | jmp .out |
721 | .draw_but: ;draw non selected button |
721 | .draw_but: ;draw non selected button |
722 | add edx,200+1 shl 29 |
722 | add edx,200+1 shl 29 |
723 | mcall 8 |
723 | mcall 8 |
724 | .after_draw_but: |
- | |
725 | mov eax,[Year] |
724 | mov eax,[Year] |
726 | cmp [curYear],eax |
725 | cmp [curYear],eax |
727 | jne .out |
726 | jne .out |
728 | mov eax,[Month] |
727 | mov eax,[Month] |
729 | cmp [curMonth],eax |
728 | cmp [curMonth],eax |
730 | jne .out |
729 | jne .out |
731 | mov eax,[number] |
730 | mov eax,[number] |
732 | cmp [curDay],eax |
731 | cmp [curDay],eax |
733 | jne .out |
732 | jne .out |
- | 733 | mov edx,0xff0000 |
|
734 | ;DrawRect COL_DATE_INACTIVE_1,COL_DATE_INACTIVE_2,COL_DATE_INACTIVE_3,COL_DATE_INACTIVE_4 |
734 | mov bx,DATE_BUTTON_WIDTH-2 |
- | 735 | mov cx,2 |
|
- | 736 | add ebx,1 shl 16 |
|
- | 737 | add ecx,27 shl 16 |
|
- | 738 | mcall 13 |
|
735 | .out: |
739 | .out: |
736 | - | ||
737 | - | ||
738 | mov eax, [number] |
740 | mov eax, [number] |
739 | xor edx, edx |
741 | xor edx, edx |
740 | mov ecx, 10 |
742 | mov ecx, 10 |
741 | div ecx |
743 | div ecx |
742 | mov [remainder], edx |
744 | mov [remainder], edx |