apple: better polygons, revealing a bigger issue maybe
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
82999d716a
commit
74779c8f42
1 changed files with 8 additions and 6 deletions
|
|
@ -243,14 +243,16 @@ static void recursive_dispatch_key_released(MwLL handle, int* k) {
|
||||||
[NSGraphicsContext setCurrentContext:ctx];
|
[NSGraphicsContext setCurrentContext:ctx];
|
||||||
|
|
||||||
[nscolor setFill];
|
[nscolor setFill];
|
||||||
NSRectFill(self->view.bounds);
|
|
||||||
for(i = 0; i < points_count; i++) {
|
for(i = 0; i < points_count; i++) {
|
||||||
if(i == 0) {
|
NSPoint p = NSMakePoint(points[i].x, [self->view frame].size.height - points[i].y);
|
||||||
[path moveToPoint:NSMakePoint(points[i].x,
|
if((i % 3) == 0) {
|
||||||
_rect.size.height - points[i].y)];
|
if(i != 0) {
|
||||||
|
[path lineToPoint:p];
|
||||||
|
[path fill];
|
||||||
|
}
|
||||||
|
[path moveToPoint:p];
|
||||||
} else {
|
} else {
|
||||||
[path lineToPoint:NSMakePoint(points[i].x,
|
[path lineToPoint:p];
|
||||||
_rect.size.height - points[i].y)];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue