aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--main.c15
2 files changed, 2 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index be95545..b26898c 100644
--- a/Makefile
+++ b/Makefile
@@ -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)
diff --git a/main.c b/main.c
index 436f209..0de32f7 100644
--- a/main.c
+++ b/main.c
@@ -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