Skip to content

Commit

Permalink
Update example programs
Browse files Browse the repository at this point in the history
  • Loading branch information
61315 committed Feb 11, 2022
1 parent cbe5bb1 commit 58f7147
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ int main()
printf("Task finished\n");

return EXIT_SUCCESS;
}
}
6 changes: 3 additions & 3 deletions examples/ppm.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ int main()
_setmode(0, 0x8000);
_setmode(1, 0x8000);
#endif
struct ppm *source_ppm = ppm_read("source.ppm");
struct ppm *mask_ppm = ppm_read("mask.ppm");
struct ppm *source_ppm = ppm_read("assets/source.ppm");
struct ppm *mask_ppm = ppm_read("assets/mask.ppm");

unsigned char *mask_grayscale = malloc(mask_ppm->width * mask_ppm->height);

Expand Down Expand Up @@ -96,7 +96,7 @@ int main()

printf("Task finished with the error code: %d\n", error);

FILE *file_result = fopen("result.ppm", "wb");
FILE *file_result = fopen("ppm_result.ppm", "wb");
ppm_write(source_ppm, file_result);
fclose(file_result);

Expand Down
Binary file removed examples/ppm_out.png
Binary file not shown.

0 comments on commit 58f7147

Please sign in to comment.