Rev 1684 | Rev 1727 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1684 | Rev 1717 | ||
---|---|---|---|
Line 1043... | Line 1043... | ||
1043 | 1043 | ||
1044 | mov ebx,dword[coord_x0] |
1044 | mov ebx,dword[coord_x0] |
1045 | mov ecx,dword[coord_y0] |
1045 | mov ecx,dword[coord_y0] |
1046 | mov edx,dword[color] |
1046 | mov edx,dword[color] |
- | 1047 | mov esi,dword[coord_x1] |
|
- | 1048 | cmp ebx,esi |
|
- | 1049 | jle @f |
|
Line 1047... | Line 1050... | ||
1047 | mov esi,dword[coord_x1] |
1050 | xchg ebx,esi ;¥á«¨ x0 > x1 â® ¬¥ï¥¬ ¬¥áâ ¬¨ x0 ¨ x1 |
1048 | - | ||
1049 | @@: ;for (x=x0 ; x |
- | |
1050 | call draw_pixel |
1051 | |
1051 | inc ebx |
1052 | @@: ;横« ¯® ®á¨ x ®â x0 ¤® x1 |
- | 1053 | cmp ebx,esi |
|
- | 1054 | jge @f |
|
1052 | cmp ebx,esi |
1055 | call draw_pixel |
1053 | jge @f |
1056 | inc ebx |
1054 | jmp @b |
1057 | jmp @b |
1055 | @@: |
1058 | @@: |
1056 | .end24: |
1059 | .end24: |
Line 1097... | Line 1100... | ||
1097 | mov eax,[coord_x] |
1100 | mov eax,[coord_x] |
1098 | mov ebx,[coord_y] |
1101 | mov ebx,[coord_y] |
1099 | mov edx,[w] |
1102 | mov edx,[w] |
1100 | add edx,eax |
1103 | add edx,eax |
1101 | mov ecx,[h] |
1104 | mov ecx,[h] |
- | 1105 | cmp ecx,1 ;áà ¢¥¨¥ á ¬¨¨¬ «ì® ¢®§¬®¦®© ¢ëá®â®© |
|
- | 1106 | jl .coord_end ;¥á«¨ ¢ëá®â ¬¥ìè¥ 1-£® ¯¨ªá¥«ï |
|
1102 | mov esi,dword[color] |
1107 | mov esi,dword[color] |
1103 | cld |
1108 | cld |
1104 | @@: |
1109 | @@: |
1105 | stdcall buf_line_h, edi, eax, ebx, edx, esi ;«¨¨ï - |
1110 | stdcall buf_line_h, edi, eax, ebx, edx, esi ;«¨¨ï - |
1106 | inc ebx |
1111 | inc ebx |