Browse Source

Fix mismatched height/width

master
Wesley Kerfoot 5 years ago
parent
commit
e8bcb327de
  1. 6
      blit_xcb.c

6
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;

Loading…
Cancel
Save