Lines Matching refs:r1
162 Rect r1, r2; in app_draw_ellipse() local
168 r1.x = r.x + a; in app_draw_ellipse()
169 r1.y = r.y; in app_draw_ellipse()
170 r1.width = r.width & 1; /* i.e. if width is odd */ in app_draw_ellipse()
171 r1.height = 1; in app_draw_ellipse()
173 r2 = r1; in app_draw_ellipse()
176 prevx = r1.x; in app_draw_ellipse()
177 prevy = r1.y; in app_draw_ellipse()
213 if (r1.x + W < prevx) in app_draw_ellipse()
214 W = prevx - r1.x; in app_draw_ellipse()
251 if (r1.width == 0) in app_draw_ellipse()
253 r1.x -= 1; in app_draw_ellipse()
254 r1.width += 2; in app_draw_ellipse()
260 if (r1.x < r.x) in app_draw_ellipse()
261 r1.x = r2.x = r.x; in app_draw_ellipse()
262 if (r1.width > r.width) in app_draw_ellipse()
263 r1.width = r2.width = r.width; in app_draw_ellipse()
264 if (r1.y == r2.y-1) in app_draw_ellipse()
266 r1.x = r2.x = r.x; in app_draw_ellipse()
267 r1.width = r2.width = r.width; in app_draw_ellipse()
270 if ((r1.y < r.y+w) || (r1.x+W >= r1.x+r1.width-W)) in app_draw_ellipse()
272 result &= app_fill_rect(g, r1, pbrush, TRUE); in app_draw_ellipse()
275 prevx = r1.x; in app_draw_ellipse()
276 prevy = r1.y; in app_draw_ellipse()
278 else if (r1.y+r1.height < r2.y) in app_draw_ellipse()
281 result &= app_fill_rect(g, rect(r1.x,r1.y, in app_draw_ellipse()
284 r1.x+r1.width-W,r1.y,W,1), pbrush, TRUE); in app_draw_ellipse()
290 prevx = r1.x; in app_draw_ellipse()
291 prevy = r1.y; in app_draw_ellipse()
295 r1.y += 1; in app_draw_ellipse()
302 r1.x -= 1; in app_draw_ellipse()
303 r1.width += 2; in app_draw_ellipse()
311 r1.height = r1.y+r1.height-r2.y; in app_draw_ellipse()
312 r1.y = r2.y; in app_draw_ellipse()
322 result &= app_fill_rect(g, rect(r.x, r1.y, in app_draw_ellipse()
323 r.width, r1.height), pbrush, TRUE); in app_draw_ellipse()
327 result &= app_fill_rect(g, rect(r.x, r1.y, W, r1.height), pbrush, TRUE); in app_draw_ellipse()
328 result &= app_fill_rect(g, rect(r.x+r.width-W, r1.y, in app_draw_ellipse()
329 W, r1.height), pbrush, TRUE); in app_draw_ellipse()
634 Rect r1, r2; in app_fill_ellipse() local
640 r1.x = r.x + a; in app_fill_ellipse()
641 r1.y = r.y; in app_fill_ellipse()
642 r1.width = r.width & 1; /* i.e. if width is odd */ in app_fill_ellipse()
643 r1.height = 1; in app_fill_ellipse()
645 r2 = r1; in app_fill_ellipse()
658 r1.x -= 1; in app_fill_ellipse()
659 r1.width += 2; in app_fill_ellipse()
671 r1.height += 1; in app_fill_ellipse()
684 if ((r1.width > 0) && (r1.height > 0)) in app_fill_ellipse()
688 if (r1.y+r1.height < r2.y) in app_fill_ellipse()
691 result &= app_fill_rect(g, r1, pbrush, FALSE); in app_fill_ellipse()
696 r1.y += r1.height; in app_fill_ellipse()
697 r1.height = 1; in app_fill_ellipse()
706 r1.height += 1; in app_fill_ellipse()
712 r1.x -= 1; in app_fill_ellipse()
713 r1.width += 2; in app_fill_ellipse()
718 if (r1.y < r2.y) in app_fill_ellipse()
721 r1.x = r.x; in app_fill_ellipse()
722 r1.width = r.width; in app_fill_ellipse()
723 r1.height = r2.y+r2.height-r1.y; in app_fill_ellipse()
724 result &= app_fill_rect(g, r1, pbrush, FALSE); in app_fill_ellipse()
729 r1.x = r.x; in app_fill_ellipse()
730 r1.width = r.width; in app_fill_ellipse()
731 r1.height = r1.y+r1.height-r2.y; in app_fill_ellipse()
732 r1.y = r2.y; in app_fill_ellipse()
733 result &= app_fill_rect(g, r1, pbrush, FALSE); in app_fill_ellipse()
802 Rect r1, r2; in app_fill_arc() local
839 r1.x = r.x + a; in app_fill_arc()
840 r1.y = r.y; in app_fill_arc()
841 r1.width = r.width & 1; /* i.e. if width is odd */ in app_fill_arc()
842 r1.height = 1; in app_fill_arc()
844 r2 = r1; in app_fill_arc()
884 if (r1.width == 0) in app_fill_arc()
886 r1.x -= 1; in app_fill_arc()
887 r1.width += 2; in app_fill_arc()
893 if (r1.x < r.x) in app_fill_arc()
894 r1.x = r2.x = r.x; in app_fill_arc()
895 if (r1.width > r.width) in app_fill_arc()
896 r1.width = r2.width = r.width; in app_fill_arc()
897 if (r1.y == r2.y-1) in app_fill_arc()
899 r1.x = r2.x = r.x; in app_fill_arc()
900 r1.width = r2.width = r.width; in app_fill_arc()
903 if ((r1.width > 0) && (r1.y+r1.height < r2.y)) in app_fill_arc()
906 result &= app_fill_arc_rect(g, r1, in app_fill_arc()
915 r1.y += 1; in app_fill_arc()
922 r1.x -= 1; in app_fill_arc()
923 r1.width += 2; in app_fill_arc()
928 if (r1.y < r2.y) in app_fill_arc()
931 r1.x = r.x; in app_fill_arc()
932 r1.width = r.width; in app_fill_arc()
933 r1.height = r2.y+r2.height-r1.y; in app_fill_arc()
934 while (r1.height > 0) in app_fill_arc()
937 rect(r1.x, r1.y, r1.width, 1), in app_fill_arc()
939 r1.y += 1; in app_fill_arc()
940 r1.height -= 1; in app_fill_arc()
946 r1.x = r.x; in app_fill_arc()
947 r1.width = r.width; in app_fill_arc()
948 r1.height = r1.y+r1.height-r2.y; in app_fill_arc()
949 r1.y = r2.y; in app_fill_arc()
950 while (r1.height > 0) in app_fill_arc()
953 rect(r1.x, r1.y, r1.width, 1), in app_fill_arc()
955 r1.y += 1; in app_fill_arc()
956 r1.height -= 1; in app_fill_arc()
1001 Rect r1, r2; in app_draw_arc() local
1037 r1.x = r.x + a; in app_draw_arc()
1038 r1.y = r.y; in app_draw_arc()
1039 r1.width = r.width & 1; /* i.e. if width is odd */ in app_draw_arc()
1040 r1.height = 1; in app_draw_arc()
1042 r2 = r1; in app_draw_arc()
1045 prevx = r1.x; in app_draw_arc()
1046 prevy = r1.y; in app_draw_arc()
1082 if (r1.x + W < prevx) in app_draw_arc()
1083 W = prevx - r1.x; in app_draw_arc()
1120 if (r1.width == 0) in app_draw_arc()
1122 r1.x -= 1; in app_draw_arc()
1123 r1.width += 2; in app_draw_arc()
1129 if (r1.x < r.x) in app_draw_arc()
1130 r1.x = r2.x = r.x; in app_draw_arc()
1131 if (r1.width > r.width) in app_draw_arc()
1132 r1.width = r2.width = r.width; in app_draw_arc()
1133 if (r1.y == r2.y-1) in app_draw_arc()
1135 r1.x = r2.x = r.x; in app_draw_arc()
1136 r1.width = r2.width = r.width; in app_draw_arc()
1139 if ((r1.y < r.y+w) || (r1.x+W >= r1.x+r1.width-W)) in app_draw_arc()
1141 result &= app_fill_arc_rect(g, r1, in app_draw_arc()
1148 prevx = r1.x; in app_draw_arc()
1149 prevy = r1.y; in app_draw_arc()
1151 else if (r1.y+r1.height < r2.y) in app_draw_arc()
1155 r1.x,r1.y,W,1), in app_draw_arc()
1159 r1.x+r1.width-W,r1.y,W,1), in app_draw_arc()
1171 prevx = r1.x; in app_draw_arc()
1172 prevy = r1.y; in app_draw_arc()
1176 r1.y += 1; in app_draw_arc()
1183 r1.x -= 1; in app_draw_arc()
1184 r1.width += 2; in app_draw_arc()
1192 r1.height = r1.y+r1.height-r2.y; in app_draw_arc()
1193 r1.y = r2.y; in app_draw_arc()
1203 while (r1.height > 0) in app_draw_arc()
1206 r1.y, r.width, 1), p0, p1, p2, in app_draw_arc()
1208 r1.y += 1; in app_draw_arc()
1209 r1.height -= 1; in app_draw_arc()
1214 while (r1.height > 0) in app_draw_arc()
1216 result &= app_fill_arc_rect(g, rect(r.x, r1.y, in app_draw_arc()
1220 r1.y, W, 1), p0, p1, p2, in app_draw_arc()
1222 r1.y += 1; in app_draw_arc()
1223 r1.height -= 1; in app_draw_arc()