diff options
Diffstat (limited to 'src/glibext')
-rw-r--r-- | src/glibext/linesegment.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/glibext/linesegment.c b/src/glibext/linesegment.c index 02c6691..dc4a128 100644 --- a/src/glibext/linesegment.c +++ b/src/glibext/linesegment.c @@ -175,7 +175,6 @@ bool selection_list_has_segment_content(const segcnt_list *, const line_segment bool load_segment_rendering_parameters(void) { - gchar *filename; /* Accès à une image 1x1 */ cairo_font_slant_t s; /* Boucle de parcours #1 */ cairo_font_weight_t w; /* Boucle de parcours #2 */ cairo_t **cr; /* Contexte à créer */ @@ -185,15 +184,12 @@ bool load_segment_rendering_parameters(void) /* Contextes pour les mesures initiales */ - filename = find_pixmap_file("nil.png"); - if (filename == NULL) abort(); - for (s = CAIRO_FONT_SLANT_NORMAL; s < CAIRO_FONT_SLANT_COUNT; s++) for (w = CAIRO_FONT_WEIGHT_NORMAL; w < CAIRO_FONT_WEIGHT_COUNT; w++) { cr = &_seg_params.font_ctxts[CAIRO_FONT_INDEX(s, w)]; - surface = cairo_image_surface_create_from_png(filename); + surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 1, 1); *cr = cairo_create(surface); cairo_surface_destroy(surface); @@ -205,8 +201,6 @@ bool load_segment_rendering_parameters(void) } - g_free(filename); - /* Fond d'impression */ _seg_params.selection_bg.has_color = true; |