Skip to content

Commit fffcb40

Browse files
gtkui: Hide info area text containing emoji properly. Closes: #1491
Fading out text with emoji characters can lead to them still being displayed above the text of a new track. Ignoring negative alpha channels somehow avoids this. Reproduced on Ubuntu 24.04. Arch Linux requires "noto-fonts-emoji".
1 parent a491644 commit fffcb40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gtkui/ui_infoarea.cc

+3
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
140140
static void draw_text (GtkWidget * widget, cairo_t * cr, int x, int y, int
141141
width, float r, float g, float b, float a, int font_size, const char * text)
142142
{
143+
if (a < 0)
144+
return;
145+
143146
cairo_move_to (cr, x, y);
144147
cairo_set_source_rgba (cr, r, g, b, a);
145148

0 commit comments

Comments
 (0)