mirror of
https://github.com/augustin64/projet-tipe
synced 2025-03-13 06:15:21 +01:00
Fix preview
This commit is contained in:
parent
28cc512737
commit
458135effc
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user