comparison src/gui_gtk_x11.c @ 26:404aac550f35 v7.0017

updated for version 7.0017
author vimboss
date Thu, 07 Oct 2004 21:02:47 +0000
parents cc049b00ee70
children 7f788cd27415
comparison
equal deleted inserted replaced
25:8cde1a064c7c 26:404aac550f35
5237 GList *item_list; 5237 GList *item_list;
5238 int cluster_width; 5238 int cluster_width;
5239 int last_glyph_rbearing; 5239 int last_glyph_rbearing;
5240 int cells = 0; /* cells occupied by current cluster */ 5240 int cells = 0; /* cells occupied by current cluster */
5241 5241
5242 /* Safety check: pango crashes when invoked with invalid utf-8
5243 * characters. */
5244 if (!utf_valid_string(s, s + len))
5245 {
5246 column_offset = len;
5247 goto skipitall;
5248 }
5249
5242 /* original width of the current cluster */ 5250 /* original width of the current cluster */
5243 cluster_width = PANGO_SCALE * gui.char_width; 5251 cluster_width = PANGO_SCALE * gui.char_width;
5244 5252
5245 /* right bearing of the last non-composing glyph */ 5253 /* right bearing of the last non-composing glyph */
5246 last_glyph_rbearing = PANGO_SCALE * gui.char_width; 5254 last_glyph_rbearing = PANGO_SCALE * gui.char_width;
5370 } 5378 }
5371 5379
5372 pango_attr_list_unref(attr_list); 5380 pango_attr_list_unref(attr_list);
5373 } 5381 }
5374 5382
5383 skipitall:
5375 if (flags & DRAW_UNDERL) 5384 if (flags & DRAW_UNDERL)
5376 gdk_draw_line(gui.drawarea->window, 5385 gdk_draw_line(gui.drawarea->window,
5377 gui.text_gc, 5386 gui.text_gc,
5378 FILL_X(col), 5387 FILL_X(col),
5379 FILL_Y(row + 1) - 1, 5388 FILL_Y(row + 1) - 1,