From 2c188938780b23a4abc14cb70268580ff5b6daca Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 2 May 2005 19:47:05 +0000 Subject: [PATCH] when walking the bytes use the pitch not the width git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@477 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_gfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c index 0150706..cdb92e1 100644 --- a/src/rrd_gfx.c +++ b/src/rrd_gfx.c @@ -658,7 +658,7 @@ int gfx_render_png (gfx_canvas_t *canvas, if (buf_x < 0 || buf_x >= (long)pys_width) continue; buf_x *= bytes_per_pixel ; - font_alpha = *(bit->bitmap.buffer + iy * bit->bitmap.width + ix); + font_alpha = *(bit->bitmap.buffer + iy * bit->bitmap.pitch + ix); if (font_alpha > 0){ fcolor[3] = (art_u8)((double)font_alpha / gr * falpha); art_rgba_rgba_composite(buffer + buf_y + buf_x ,fcolor,1); -- 2.30.2