aboutsummaryrefslogtreecommitdiff
path: root/bmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'bmp.c')
-rw-r--r--bmp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bmp.c b/bmp.c
index b44ea39..601cdfe 100644
--- a/bmp.c
+++ b/bmp.c
@@ -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 */