Rev 1345 | Rev 1365 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1345 | Rev 1362 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | ;; |
55 | ;; |
56 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
56 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 57... | Line 57... | ||
57 | 57 | ||
Line 58... | Line 58... | ||
58 | include 'macros.inc' |
58 | include 'macros.inc' |
Line 59... | Line 59... | ||
59 | 59 | ||
Line 60... | Line 60... | ||
60 | $Revision: 1345 $ |
60 | $Revision: 1362 $ |
Line 682... | Line 682... | ||
682 | 682 | ||
Line 683... | Line 683... | ||
683 | ; SET PRELIMINARY WINDOW STACK AND POSITIONS |
683 | ; SET PRELIMINARY WINDOW STACK AND POSITIONS |
684 | 684 | ||
685 | mov esi,boot_windefs |
685 | mov esi,boot_windefs |
Line 686... | Line 686... | ||
686 | call boot_log |
686 | call boot_log |
Line 687... | Line 687... | ||
687 | call setwindowdefaults |
687 | call set_window_defaults |
688 | 688 | ||
Line 3346... | Line 3346... | ||
3346 | pop ecx |
3346 | pop ecx |
3347 | pop ebx |
3347 | pop ebx |
3348 | pop eax |
3348 | pop eax |
3349 | add ecx,eax |
3349 | add ecx,eax |
3350 | add edx,ebx |
3350 | add edx,ebx |
3351 | mov [dlx],eax ; save for drawlimits |
3351 | mov [draw_limits.left],eax ; save for drawlimits |
3352 | mov [dly],ebx |
3352 | mov [draw_limits.top],ebx |
3353 | mov [dlxe],ecx |
3353 | mov [draw_limits.right],ecx |
3354 | mov [dlye],edx |
3354 | mov [draw_limits.bottom],edx |
3355 | call calculatescreen |
3355 | call calculatescreen |
Line 3356... | Line 3356... | ||
3356 | 3356 | ||
Line 3357... | Line 3357... | ||
3357 | mov [edi + WDATA.fl_redraw], 1 ; flag the process as redraw |
3357 | mov [edi + WDATA.fl_redraw], 1 ; flag the process as redraw |
Line 3665... | Line 3665... | ||
3665 | mov ecx, [edi + WDATA.box.width] |
3665 | mov ecx, [edi + WDATA.box.width] |
3666 | mov edx, [edi + WDATA.box.height] |
3666 | mov edx, [edi + WDATA.box.height] |
3667 | add ecx,eax |
3667 | add ecx,eax |
3668 | add edx,ebx |
3668 | add edx,ebx |
Line 3669... | Line 3669... | ||
3669 | 3669 | ||
3670 | mov ecx,[dlye] ; ecx = area y end ebx = window y start |
3670 | mov ecx,[draw_limits.bottom] ; ecx = area y end ebx = window y start |
3671 | cmp ecx,ebx |
3671 | cmp ecx,ebx |
Line 3672... | Line 3672... | ||
3672 | jb ricino |
3672 | jb ricino |
3673 | 3673 | ||
3674 | mov ecx,[dlxe] ; ecx = area x end eax = window x start |
3674 | mov ecx,[draw_limits.right] ; ecx = area x end eax = window x start |
Line 3675... | Line 3675... | ||
3675 | cmp ecx,eax |
3675 | cmp ecx,eax |
3676 | jb ricino |
3676 | jb ricino |
3677 | 3677 | ||
3678 | mov eax, [edi + WDATA.box.left] |
3678 | mov eax, [edi + WDATA.box.left] |
3679 | mov ebx, [edi + WDATA.box.top] |
3679 | mov ebx, [edi + WDATA.box.top] |
3680 | mov ecx, [edi + WDATA.box.width] |
3680 | mov ecx, [edi + WDATA.box.width] |
Line 3681... | Line 3681... | ||
3681 | mov edx, [edi + WDATA.box.height] |
3681 | mov edx, [edi + WDATA.box.height] |
3682 | add ecx, eax |
3682 | add ecx, eax |
3683 | add edx, ebx |
3683 | add edx, ebx |
Line 3684... | Line 3684... | ||
3684 | 3684 | ||
3685 | mov eax,[dly] ; eax = area y start edx = window y end |
3685 | mov eax,[draw_limits.top] ; eax = area y start edx = window y end |
3686 | cmp edx,eax |
3686 | cmp edx,eax |
Line 3687... | Line 3687... | ||
3687 | jb ricino |
3687 | jb ricino |
Line 3698... | Line 3698... | ||
3698 | cmp al,2 |
3698 | cmp al,2 |
3699 | jz newdw8 |
3699 | jz newdw8 |
3700 | test al,al |
3700 | test al,al |
3701 | jz .az |
3701 | jz .az |
3702 | lea eax,[edi+draw_data-window_data] |
3702 | lea eax,[edi+draw_data-window_data] |
3703 | mov ebx,[dlx] |
3703 | mov ebx,[draw_limits.left] |
3704 | cmp ebx,[eax+RECT.left] |
3704 | cmp ebx,[eax+RECT.left] |
3705 | jae @f |
3705 | jae @f |
3706 | mov [eax+RECT.left],ebx |
3706 | mov [eax+RECT.left],ebx |
3707 | @@: |
3707 | @@: |
3708 | mov ebx,[dly] |
3708 | mov ebx,[draw_limits.top] |
3709 | cmp ebx,[eax+RECT.top] |
3709 | cmp ebx,[eax+RECT.top] |
3710 | jae @f |
3710 | jae @f |
3711 | mov [eax+RECT.top],ebx |
3711 | mov [eax+RECT.top],ebx |
3712 | @@: |
3712 | @@: |
3713 | mov ebx,[dlxe] |
3713 | mov ebx,[draw_limits.right] |
3714 | cmp ebx,[eax+RECT.right] |
3714 | cmp ebx,[eax+RECT.right] |
3715 | jbe @f |
3715 | jbe @f |
3716 | mov [eax+RECT.right],ebx |
3716 | mov [eax+RECT.right],ebx |
3717 | @@: |
3717 | @@: |
3718 | mov ebx,[dlye] |
3718 | mov ebx,[draw_limits.bottom] |
3719 | cmp ebx,[eax+RECT.bottom] |
3719 | cmp ebx,[eax+RECT.bottom] |
3720 | jbe @f |
3720 | jbe @f |
3721 | mov [eax+RECT.bottom],ebx |
3721 | mov [eax+RECT.bottom],ebx |
3722 | @@: |
3722 | @@: |
3723 | jmp newdw8 |
3723 | jmp newdw8 |
3724 | .az: |
3724 | .az: |
Line 3725... | Line 3725... | ||
3725 | 3725 | ||
3726 | mov eax,edi |
3726 | mov eax,edi |
Line 3727... | Line 3727... | ||
3727 | add eax,draw_data-window_data |
3727 | add eax,draw_data-window_data |
3728 | 3728 | ||
3729 | mov ebx,[dlx] ; set limits |
3729 | mov ebx,[draw_limits.left] ; set limits |
3730 | mov [eax + RECT.left], ebx |
3730 | mov [eax + RECT.left], ebx |
3731 | mov ebx,[dly] |
3731 | mov ebx,[draw_limits.top] |
3732 | mov [eax + RECT.top], ebx |
3732 | mov [eax + RECT.top], ebx |
3733 | mov ebx,[dlxe] |
3733 | mov ebx,[draw_limits.right] |
3734 | mov [eax + RECT.right], ebx |
3734 | mov [eax + RECT.right], ebx |
Line 3735... | Line 3735... | ||
3735 | mov ebx,[dlye] |
3735 | mov ebx,[draw_limits.bottom] |
Line 3736... | Line 3736... | ||
3736 | mov [eax + RECT.bottom], ebx |
3736 | mov [eax + RECT.bottom], ebx |