From 130075de743f6e37206ddf4419265899284179fd Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 28 Oct 2014 00:50:20 +0100 Subject: [PATCH] Fix copy paste typo in swap_byte_order --- obrender/color.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obrender/color.c b/obrender/color.c index 86a8b3e3..42953671 100644 --- a/obrender/color.c +++ b/obrender/color.c @@ -239,7 +239,7 @@ static void swap_byte_order(XImage *im) di = 0; for (y = 0; y < im->height; ++y) { - for (x = 0; x < im->height; ++x) { + for (x = 0; x < im->width; ++x) { gchar *c = &im->data[di + x * im->bits_per_pixel / 8]; gchar t;