Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/font.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ void RenderString(Drawable d, FontType font, ColorType color,
{
XRectangle rect;
Region renderRegion;
int len;
char *utf8String;
#ifdef USE_PANGO
XftDraw *xd;
Expand All @@ -386,7 +385,6 @@ void RenderString(Drawable d, FontType font, ColorType color,

/* Convert to UTF-8 if necessary. */
utf8String = GetUTF8String(str);
len = strlen(utf8String);
Copy link
Owner

@joewing joewing Dec 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is used on line 428 if USE_PANGO is undefined. Probably could push it inside the necessary ifdefs though.


/* Get the bounds for the string based on the specified width. */
rect.x = x;
Expand Down