diff options
| -rw-r--r-- | bmp.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -50,10 +50,8 @@ void map_to_bmp(Map map, size_t map_width, size_t map_height, Position start, Po unsigned char* buf = malloc(imagesize); /* Draw the walls */ - for(int row = height - 1; row >= 0; row--) - { - for(int col = 0; col < width; col++) - { + for(int row = height - 1; row >= 0; row--) { + for(int col = 0; col < width; col++) { if (map[height - 1 - row][col] == WALL) { buf[row * width_in_bytes + col * 3 + 0] = 255; /* b */ buf[row * width_in_bytes + col * 3 + 1] = 255; /* g */ |
