mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-23 03:43:02 +00:00
fix off by one error
This commit is contained in:
parent
aed26e151e
commit
38ea94868f
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ void text_prepare_line(struct text* text) {
|
|||
text->bounds = CTLineGetBoundsWithOptions(text->line.line,
|
||||
kCTLineBoundsUseGlyphPathBounds);
|
||||
|
||||
text->bounds.size.width = (uint32_t) (text->bounds.size.width + 0.5);
|
||||
text->bounds.size.width = (uint32_t) (text->bounds.size.width + 1.5);
|
||||
text->bounds.size.height = (uint32_t) (text->bounds.size.height + 0.5);
|
||||
text->bounds.origin.x = (uint32_t) (text->bounds.origin.x + 0.5);
|
||||
text->line.color = text->highlight ? text->highlight_color : text->color;
|
||||
|
|
Loading…
Reference in a new issue