aboutsummaryrefslogtreecommitdiff
path: root/generic/Text.c
diff options
context:
space:
mode:
authorlecoanet2001-01-04 10:48:21 +0000
committerlecoanet2001-01-04 10:48:21 +0000
commit4650e4ce6c3ff004249db6e684c783f74dc4820e (patch)
treeeb556faa71ccc8aa98d0564e257cb22a18266e98 /generic/Text.c
parente4e6cd076aacae005af8347e3199c75e1cfd42aa (diff)
downloadtkzinc-4650e4ce6c3ff004249db6e684c783f74dc4820e.zip
tkzinc-4650e4ce6c3ff004249db6e684c783f74dc4820e.tar.gz
tkzinc-4650e4ce6c3ff004249db6e684c783f74dc4820e.tar.bz2
tkzinc-4650e4ce6c3ff004249db6e684c783f74dc4820e.tar.xz
Ajout de la compilation conditionnelle de libart
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
}