From 4c2874649d4b1d2414793d60915d309f0bf67117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Tue, 4 Jul 2023 06:39:56 +0200 Subject: liberty-xui: fix build on systems without A_ITALIC --- liberty-xui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/liberty-xui.c b/liberty-xui.c index 125985e..45a6d90 100644 --- a/liberty-xui.c +++ b/liberty-xui.c @@ -1030,7 +1030,6 @@ x11_font_destroy (struct x11_font *self) LIST_FOR_EACH (struct x11_font_link, iter, self->list) x11_font_link_destroy (iter); free (self); - } /// Find or instantiate a font that can render the character given by cp. @@ -1161,8 +1160,10 @@ x11_widget_font (struct widget *self) unsigned style = 0; if (self->attrs & A_BOLD) style |= X11_FONT_BOLD; +#ifdef A_ITALIC if (self->attrs & A_ITALIC) style |= X11_FONT_ITALIC; +#endif // A_ITALIC if (self->extended_attrs & XUI_ATTR_MONOSPACE) style |= X11_FONT_MONOSPACE; -- cgit v1.2.3