Update columns.c

This commit is contained in:
Jason Bou-Samra
2024-07-18 20:04:40 +10:00
committed by GitHub
parent cd80350939
commit f5df59bb0c
+10 -10
View File
@@ -316,17 +316,17 @@ int Ren_game(void) {
SDL_RenderFillRect(sr, &main_back); // background SDL_RenderFillRect(sr, &main_back); // background
SDL_SetRenderDrawColor (sr, 0xff, 0xff, 0xff, 255); SDL_SetRenderDrawColor (sr, 0xff, 0xff, 0xff, 255);
SDL_RenderDrawRect(sr, &main_trim); // trim SDL_RenderDrawRect(sr, &main_trim); // trim
// if(tile_c > 17) {
// tile_c = 0;
// }
// for (i = 0; i < 1; i++) {
// tile_dst.x = tile_pos;
// tile_dst.y = 11 * tile_c + 1;
// SDL_RenderCopy(sr, texture, &tile_src, &tile_dst);
// tile_c++;
// }
display_grid(); display_grid();
if(tile_c > 17) {
tile_c = 0;
}
for (i = 0; i < 1; i++) {
tile_dst.x = tile_pos;
tile_dst.y = 11 * tile_c + 1;
SDL_RenderCopy(sr, texture, &tile_src, &tile_dst);
tile_c++;
}
return 0; return 0;
} }