aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2025-03-06 18:23:12 -0800
committerChristian C <cc@localhost>2025-03-06 18:23:12 -0800
commitc1f7a624aad8b548b5d95da0d4a587ce49f353c7 (patch)
treea82039b21e8da9827e12837a527d7ee480511f87
parent8a879518c5939f7a998cb4c5298064ee5532c4fd (diff)
Fix closeup
Not applying if silent!
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index d51765c..5350797 100644
--- a/src/main.c
+++ b/src/main.c
@@ -61,9 +61,8 @@ int main(int argc, char** argv)
case 'n':
if (!silent) {
printf("Closeup Size: %d\n", atoi(optarg));
- closeup_pixel_count = atoi(optarg);
}
- png_file = optarg;
+ closeup_pixel_count = atoi(optarg);
break;
case ':':
if (!silent) {
@@ -190,7 +189,7 @@ int main(int argc, char** argv)
closeup(&masks, width, height, closeup_pixel_count);
TIME(ts_end);
if (!silent) {
- printf("Closing up took %f ms\n", 1000*diff_time(&ts_end, &ts_start));
+ printf("Closing (%lu) up took %f ms\n", closeup_pixel_count, 1000*diff_time(&ts_end, &ts_start));
}
//-----------------------------------------------
//-END-OF-PROCESSING-----------------------------