From 6f12fbf4eb971e64d98449e2549f2c9b9f0fc6e1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 27 Feb 2011 20:26:27 +0100 Subject: Make rendering work --- src/render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/render.c') diff --git a/src/render.c b/src/render.c index 96fab6d2..eeeda871 100644 --- a/src/render.c +++ b/src/render.c @@ -348,9 +348,9 @@ static GdkPixbuf *render_panel(struct image *image, /* Stuff inside square brackets makes this pixel go to * the expected location in the pixbuf (which measures * from the top-left corner */ - data[3*( x+w*(h-1-y) )+0] = 255*r; - data[3*( x+w*(h-1-y) )+1] = 255*g; - data[3*( x+w*(h-1-y) )+2] = 255*b; + data[3*( x+w*y )+0] = 255*r; + data[3*( x+w*y )+1] = 255*g; + data[3*( x+w*y )+2] = 255*b; } } -- cgit v1.2.3