Rev 2446 | Rev 2455 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2446 | Rev 2453 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
6 | ;; ;; |
6 | ;; ;; |
7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 8... | Line 8... | ||
8 | 8 | ||
Line 9... | Line 9... | ||
9 | $Revision: 2446 $ |
9 | $Revision: 2453 $ |
10 | 10 | ||
11 | ;============================================================================== |
11 | ;============================================================================== |
Line 58... | Line 58... | ||
58 | dec al |
58 | dec al |
59 | jnz @f |
59 | jnz @f |
Line 60... | Line 60... | ||
60 | 60 | ||
61 | ; type II - only reserve area, no draw |
61 | ; type II - only reserve area, no draw |
62 | ; call sys_window_mouse |
62 | ; call sys_window_mouse |
- | 63 | ; call [draw_pointer] |
|
63 | call [draw_pointer] |
64 | call __sys_draw_pointer |
64 | jmp .exit |
65 | jmp .exit |
65 | ;-------------------------------------- |
66 | ;-------------------------------------- |
66 | align 4 |
67 | align 4 |
67 | @@: |
68 | @@: |
Line 679... | Line 680... | ||
679 | rol ebx, 16 |
680 | rol ebx, 16 |
680 | pop bx |
681 | pop bx |
681 | test ecx, 1 shl 25 |
682 | test ecx, 1 shl 25 |
682 | jnz @f |
683 | jnz @f |
683 | sub ecx, 1 shl 25 |
684 | sub ecx, 1 shl 25 |
684 | call [draw_line] |
685 | ; call [draw_line] |
- | 686 | call __sys_draw_line |
|
685 | ;-------------------------------------- |
687 | ;-------------------------------------- |
686 | align 4 |
688 | align 4 |
687 | @@: |
689 | @@: |
688 | ; draw bottom border |
690 | ; draw bottom border |
689 | mov ebx, [esp - 2] |
691 | mov ebx, [esp - 2] |
690 | pop bx |
692 | pop bx |
691 | call [draw_line] |
693 | ; call [draw_line] |
- | 694 | call __sys_draw_line |
|
Line 692... | Line 695... | ||
692 | 695 | ||
693 | pop ebx |
696 | pop ebx |
Line 694... | Line 697... | ||
694 | add ebx, 1 * 65536 - 1 |
697 | add ebx, 1 * 65536 - 1 |
695 | 698 | ||
696 | ; draw left border |
699 | ; draw left border |
697 | rol eax, 16 |
700 | rol eax, 16 |
698 | push eax |
701 | push eax |
699 | rol eax, 16 |
702 | rol eax, 16 |
- | 703 | pop ax |
|
Line 700... | Line 704... | ||
700 | pop ax |
704 | ; call [draw_line] |
701 | call [draw_line] |
705 | call __sys_draw_line |
702 | 706 | ||
703 | ; draw right border |
707 | ; draw right border |
- | 708 | mov eax, [esp - 2] |
|
Line 704... | Line 709... | ||
704 | mov eax, [esp - 2] |
709 | pop ax |
705 | pop ax |
710 | ; call [draw_line] |
706 | call [draw_line] |
711 | call __sys_draw_line |
707 | 712 | ||
Line 758... | Line 763... | ||
758 | mov [esi + WDATA.cl_titlebar], ecx |
763 | mov [esi + WDATA.cl_titlebar], ecx |
759 | ;-------------------------------------- |
764 | ;-------------------------------------- |
760 | align 4 |
765 | align 4 |
761 | @@: |
766 | @@: |
762 | and ecx, 0x00ffffff |
767 | and ecx, 0x00ffffff |
763 | call [draw_line] |
768 | ; call [draw_line] |
- | 769 | call __sys_draw_line |
|
764 | inc edx |
770 | inc edx |
765 | cmp edx, [esp] |
771 | cmp edx, [esp] |
766 | jb .next_line |
772 | jb .next_line |
Line 767... | Line 773... | ||
767 | 773 | ||
Line 811... | Line 817... | ||
811 | ; okay, let's draw it |
817 | ; okay, let's draw it |
812 | mov eax, 1 |
818 | mov eax, 1 |
813 | mov ebx, 21 |
819 | mov ebx, 21 |
814 | mov ecx, [esi + WDATA.box.width] |
820 | mov ecx, [esi + WDATA.box.width] |
815 | mov edx, [esi + WDATA.box.height] |
821 | mov edx, [esi + WDATA.box.height] |
816 | call [drawbar] |
822 | ; call [drawbar] |
- | 823 | call vesa20_drawbar |
|
817 | ;-------------------------------------- |
824 | ;-------------------------------------- |
818 | align 4 |
825 | align 4 |
819 | .exit: |
826 | .exit: |
820 | popad |
827 | popad |
821 | ret |
828 | ret |
Line 869... | Line 876... | ||
869 | ;-------------------------------------- |
876 | ;-------------------------------------- |
870 | align 4 |
877 | align 4 |
871 | @@: |
878 | @@: |
872 | mov [esi + WDATA.cl_titlebar], ecx |
879 | mov [esi + WDATA.cl_titlebar], ecx |
873 | and ecx, 0x00ffffff |
880 | and ecx, 0x00ffffff |
874 | call [draw_line] |
881 | ; call [draw_line] |
- | 882 | call __sys_draw_line |
|
875 | inc edx |
883 | inc edx |
876 | cmp edx, [esp] |
884 | cmp edx, [esp] |
877 | jb .next_line |
885 | jb .next_line |
Line 878... | Line 886... | ||
878 | 886 | ||
Line 949... | Line 957... | ||
949 | mov ebx, 20 |
957 | mov ebx, 20 |
950 | mov ecx, [esi + WDATA.box.width] |
958 | mov ecx, [esi + WDATA.box.width] |
951 | mov edx, [esi + WDATA.box.height] |
959 | mov edx, [esi + WDATA.box.height] |
952 | sub ecx, 4 |
960 | sub ecx, 4 |
953 | sub edx, 4 |
961 | sub edx, 4 |
954 | call [drawbar] |
962 | ; call [drawbar] |
- | 963 | call vesa20_drawbar |
|
955 | ;-------------------------------------- |
964 | ;-------------------------------------- |
956 | align 4 |
965 | align 4 |
957 | .exit: |
966 | .exit: |
958 | popad |
967 | popad |
959 | ret |
968 | ret |
Line 2312... | Line 2321... | ||
2312 | xor edi, edi |
2321 | xor edi, edi |
2313 | call dtext_asciiz_esi |
2322 | call dtext_asciiz_esi |
2314 | ;-------------------------------------- |
2323 | ;-------------------------------------- |
2315 | align 4 |
2324 | align 4 |
2316 | .exit: |
2325 | .exit: |
2317 | call [draw_pointer] |
2326 | ; call [draw_pointer] |
- | 2327 | call __sys_draw_pointer |
|
2318 | ret |
2328 | ret |
2319 | ;------------------------------------------------------------------------------ |
2329 | ;------------------------------------------------------------------------------ |
2320 | align 4 |
2330 | align 4 |
2321 | ;------------------------------------------------------------------------------ |
2331 | ;------------------------------------------------------------------------------ |
2322 | window._.draw_negative_box: ;////////////////////////////////////////////////// |
2332 | window._.draw_negative_box: ;////////////////////////////////////////////////// |