Merge branch 'copilot/fix-drag-thumbnail-background' of https://github.com/kovidgoyal/kitty
This commit is contained in:
commit
7db469d3c4
1 changed files with 2 additions and 1 deletions
|
|
@ -952,7 +952,8 @@ static CTFontRef nerd_font(CGFloat sz) {
|
|||
|
||||
CGContextSetShouldAntialias(ctx, true);
|
||||
CGContextSetShouldSmoothFonts(ctx, true); // sub-pixel antialias
|
||||
CGContextSetRGBFillColor(ctx, ((bg >> 16) & 0xff) / 255.f, ((bg >> 8) & 0xff) / 255.f, (bg & 0xff) / 255.f, 1.f);
|
||||
CGContextClearRect(ctx, CGRectMake(0.0, 0.0, width, height));
|
||||
CGContextSetRGBFillColor(ctx, ((bg >> 16) & 0xff) / 255.f, ((bg >> 8) & 0xff) / 255.f, (bg & 0xff) / 255.f, ((bg >> 24) & 0xff) / 255.f);
|
||||
CGContextFillRect(ctx, CGRectMake(0.0, 0.0, width, height));
|
||||
CGContextSetTextDrawingMode(ctx, kCGTextFill);
|
||||
CGContextSetTextMatrix(ctx, CGAffineTransformIdentity);
|
||||
|
|
|
|||
Loading…
Reference in a new issue