aboutsummaryrefslogtreecommitdiff
path: root/generic/Text.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Text.c')
-rw-r--r--generic/Text.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/Text.c b/generic/Text.c
index 489cd82..b8e7336 100644
--- a/generic/Text.c
+++ b/generic/Text.c
@@ -98,7 +98,9 @@ typedef struct _TextItemStruct {
int insert_index;
ZnList text_info;
int max_width;
+#ifdef LIBART
FontBitmap *fb;
+#endif
} TextItemStruct, *TextItem;
@@ -195,7 +197,9 @@ Init(Item item,
text->font = Tk_GetFont(wi->interp, wi->win, Tk_NameOfFont(wi->font));
text->width = 0;
text->spacing = 0;
+#ifdef LIBART
text->fb = NULL;
+#endif
text->insert_index = 0;
CLEAR(text->flags, UNDERLINED);
@@ -308,10 +312,12 @@ Configure(Item item,
else {
item->connected_item = old_connected;
}
- }
+ }
+#ifdef LIBART
if (old_font != text->font) {
text->fb = NULL;
}
+#endif
return ZN_OK;
}
@@ -760,6 +766,7 @@ Draw(Item item)
static void
Render(Item item)
{
+#ifdef LIBART
WidgetInfo *wi = item->wi;
TextItem text = (TextItem) item;
TextLineInfo lines, lines_ptr;
@@ -785,6 +792,7 @@ Render(Item item)
lines_ptr->start, lines_ptr->num_chars,
tmp_x, tmp_y, text->fb, color);
}
+#endif
}