diff options
| -rw-r--r-- | drw.c | 2 | ||||
| -rw-r--r-- | swt.c | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -452,7 +452,7 @@ draw_char(Canvas *canvas, FontCache *fontcache, uint_least32_t charcode, unsigne stroke_size = 0; } - FT_Stroker_Set(font->stroke, stroke_size, FT_STROKER_LINECAP_BUTT, FT_STROKER_LINEJOIN_ROUND, 0); + FT_Stroker_Set(font->stroke, stroke_size, FT_STROKER_LINECAP_SQUARE, FT_STROKER_LINEJOIN_BEVEL, 0); cg = load_bitmap(font, charcode); @@ -224,11 +224,11 @@ get_color(uint32_t i, ushort mode) return i; } - if ((mode & ATTR_BOLD) && i >= 0 && i < 8) { - if (!BETWEEN(i + 8, 0, sizeof(colors) / sizeof(uint32_t))) { - return i; + if ((mode & ATTR_BOLD)) { + if (!BETWEEN(i - 8, 0, sizeof(colors) / sizeof(uint32_t))) { + return colors[i]; } - return colors[i + 8]; + return colors[i - 8]; } return colors[i]; |