diff options
author | jonas <himself@jonasgunz.de> | 2019-04-28 12:15:26 +0200 |
---|---|---|
committer | jonas <himself@jonasgunz.de> | 2019-04-28 12:15:26 +0200 |
commit | 1beb7e77df6a630894243f5a29475e17b2b84096 (patch) | |
tree | ba03f90658cb683dc76de9cccdfab0e32b773b90 | |
parent | ed99cc649822dde14de66a2bc7c203eb6376ae78 (diff) | |
download | AsciiMap-1beb7e77df6a630894243f5a29475e17b2b84096.tar.gz |
Cleanup
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | main.c | 15 |
2 files changed, 2 insertions, 17 deletions
@@ -4,7 +4,7 @@ LDFLAGS = -lm OUTPUT = bitmap BUILDDIR = build -FILE = 022 +FILE = 022.bmp OBJ = main.o bitmap.o @@ -34,4 +34,4 @@ clean: rm -Rdf $(BUILDDIR) run: build - $(BUILDDIR)/$(OUTPUT) $(FILE).bmp $(FILE).txt + $(BUILDDIR)/$(OUTPUT) $(FILE) @@ -119,28 +119,15 @@ int main(int argc, char *argv[]) DEBUG_PRINTF("Brightness Values: Min: %u Max: %u\n", b_min, b_max); - //Write Output - /*DEBUG_PRINTF("Opening %s for writing.\n", argv[2]); - FILE *out = fopen(argv[2], "w"); - - if(!out) - { - printf("Error opening output File. Check writing permissions.\n"); - return 1; - }*/ for(int y = 0; y<size_y; y++) { for(int x = 0; x < size_x; x++) { printf("%c", calc_char(ascii_buff[x][y], b_min, b_max)); - //fputc( calc_char(ascii_buff[x][y], b_min, b_max) , out); } - DEBUG_PRINTF("."); - //fputc('\n', out); printf("\n"); } - DEBUG_PRINTF("\n"); DEBUG_PRINTF("Finished!\n"); @@ -159,8 +146,6 @@ int main(int argc, char *argv[]) free(bitmap.G); free(bitmap.B); - //fclose(out); - return 0; }//main |