From cdeb022ba7bc1c93ef7cceed5fdcc4002ca75e51 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Fri, 24 Apr 2026 18:55:33 +0300 Subject: Fix formatting --- bmp.c | 6 ++---- 1 file 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 */ -- cgit v1.2.3