7 | | for (int32 rectNum = 0; rectNum < regionRects; rectNum++) { |
8 | | int32 rectPoint = 0; |
9 | | BRect rect = region->RectAt(rectNum); |
10 | | points[rectPoint++] = rect.LeftTop(); |
11 | | points[rectPoint++] = rect.RightTop(); |
12 | | points[rectPoint++] = rect.RightBottom(); |
13 | | points[rectPoint++] = rect.LeftBottom(); |
14 | | } |
15 | | BPolygon poly(points, regionRects * 4); |
16 | | StrokePolygon(&poly); |
| 7 | for (int32 rectNum = 0; rectNum < regionRects; rectNum++) { |
| 8 | int32 rectPoint = 0; |
| 9 | BRect rect = region->RectAt(rectNum); |
| 10 | |
| 11 | points[rectPoint++] = rect.LeftTop(); |
| 12 | points[rectPoint++] = rect.RightTop(); |
| 13 | points[rectPoint++] = rect.RightBottom(); |
| 14 | points[rectPoint++] = rect.LeftBottom(); |
| 15 | } |
| 16 | BPolygon poly(points, regionRects * 4); |
| 17 | StrokePolygon(&poly); |