X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrd_graph_helper.c;h=708c2232569b57850c6c60c1d536315cbcfcb924;hb=04ed1c285ff739ad2cd1384e6cfe24aea82cfa7e;hp=0991b3b8c24551162d26e7f0d7af015dd4bdfe00;hpb=37de076da2c2a0a786a41366de07fb3e1c18cdc5;p=rrdtool.git diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index 0991b3b..708c223 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -497,7 +497,7 @@ int rrd_parse_PVHLAST( static int spacecnt = 0; if (spacecnt == 0) { - float one_space = gfx_get_text_width(im->cr, 0, + float one_space = gfx_get_text_width(im, 0, im-> text_prop[TEXT_PROP_LEGEND]. font, @@ -505,7 +505,7 @@ int rrd_parse_PVHLAST( text_prop[TEXT_PROP_LEGEND]. size, im->tabwidth, " ") / 4.0; - float target_space = gfx_get_text_width(im->cr, 0, + float target_space = gfx_get_text_width(im, 0, im-> text_prop [TEXT_PROP_LEGEND].font,