Fix preview

This commit is contained in:
augustin64 2022-06-23 22:55:01 +02:00
parent 28cc512737
commit 458135effc

View File

@ -12,8 +12,8 @@
void print_image(unsigned int width, unsigned int height, int** image) { void print_image(unsigned int width, unsigned int height, int** image) {
char tab[] = {' ', '.', ':', '%', '#', '\0'}; char tab[] = {' ', '.', ':', '%', '#', '\0'};
for (int i=0; i < (int)height; i++) { for (int i=0; i < (int)width; i++) {
for (int j=0; j < (int)width; j++) { for (int j=0; j < (int)height; j++) {
printf("%c", tab[image[i][j]/52]); printf("%c", tab[image[i][j]/52]);
} }
printf("\n"); printf("\n");