From e8bcb327defbf54951f6c803025e45e4e28c81f1 Mon Sep 17 00:00:00 2001 From: Wesley Kerfoot Date: Mon, 1 Jul 2019 15:37:10 -0400 Subject: [PATCH] Fix mismatched height/width --- blit_xcb.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blit_xcb.c b/blit_xcb.c index 45d8ba8..e992cb5 100644 --- a/blit_xcb.c +++ b/blit_xcb.c @@ -203,8 +203,10 @@ genPoints(uint16_t height, int i = 0; - for (uint16_t x = 0; x < width; x++) { - for(uint16_t y = 0; y < height; y++) { + printf("width = %d, height = %d\n", width, height); + + for (uint16_t x = 0; x < height; x++) { + for(uint16_t y = 0; y < width; y++) { point.x = x; point.y = y; points[i] = point;