From 4650e4ce6c3ff004249db6e684c783f74dc4820e Mon Sep 17 00:00:00 2001 From: lecoanet Date: Thu, 4 Jan 2001 10:48:21 +0000 Subject: Ajout de la compilation conditionnelle de libart --- generic/Text.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'generic/Text.c') 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 } -- cgit v1.1