aboutsummaryrefslogtreecommitdiff
path: root/src/render.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-02-27 20:26:27 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:15 +0100
commit6f12fbf4eb971e64d98449e2549f2c9b9f0fc6e1 (patch)
tree5211d952cd52afe2484f0352d00a9eb73cfbca72 /src/render.c
parent0874634448299691ab5891dee45f0bf275dff07c (diff)
Make rendering work
Diffstat (limited to 'src/render.c')
-rw-r--r--src/render.c6
1 files changed, 3 insertions, 3 deletions
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;
}
}