summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-08-31 19:23:25 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-08-31 19:23:25 (GMT)
commit68b736da7b6f1d0c92b690d3f5c45db3d957629d (patch)
tree5bd86c8414e64647f67a579a0dbf59df516b6f1c /src
parent531be2e3a96bf13cd36035cec7faa31b2534a742 (diff)
Loaded line segements without external image as surface origin.
Diffstat (limited to 'src')
-rw-r--r--src/glibext/linesegment.c8
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;