This commit is contained in:
Kovid Goyal
2025-02-10 10:38:11 +05:30
parent 4d0f5ec5c5
commit e314755e4b

View File

@@ -151,7 +151,7 @@ add_curl_underline(uint8_t *buf, FontCellMetrics fcm) {
// Ensure curve doesn't exceed cell boundary at the bottom
position += half_height * 2;
if (position + half_height > max_y) position = max_y - half_height;
if (position + half_height > fcm.cell_height) position = fcm.cell_height - half_height;
unsigned miny = fcm.cell_height, maxy = 0;
// Use the Wu antialias algorithm to draw the curve