Spectrum Visualizer: Change border dimensions

This should make the border consistently sized.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2022-02-14 17:15:38 -08:00
parent ec56725824
commit 4a0690b3ab

View file

@ -234,9 +234,9 @@ extern NSString *CogPlaybackDidStopNotficiation;
CGContextRef context = NSGraphicsContext.currentContext.CGContext; CGContextRef context = NSGraphicsContext.currentContext.CGContext;
CGContextMoveToPoint(context, 0.0, 0.0); CGContextMoveToPoint(context, 0.0, 0.0);
CGContextAddLineToPoint(context, 63.0, 0.0); CGContextAddLineToPoint(context, 64.0, 0.0);
CGContextAddLineToPoint(context, 63.0, 25.0); CGContextAddLineToPoint(context, 64.0, 26.0);
CGContextAddLineToPoint(context, 0.0, 25.0); CGContextAddLineToPoint(context, 0.0, 26.0);
CGContextAddLineToPoint(context, 0.0, 0.0); CGContextAddLineToPoint(context, 0.0, 0.0);
CGContextSetStrokeColorWithColor(context, borderColor.CGColor); CGContextSetStrokeColorWithColor(context, borderColor.CGColor);
CGContextStrokePath(context); CGContextStrokePath(context);