aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2022-11-18 01:06:06 -0500
committerB. Watson <urchlay@slackware.uk>2022-11-18 01:06:06 -0500
commit870967edae499b541ddb08b5b5523c44c8005002 (patch)
tree8f11995797aa69ed29f7ebd49d59ec91644645d8
parent27f092fa8d347a31d311418bb8604cf04673bffc (diff)
downloaddla-asm-870967edae499b541ddb08b5b5523c44c8005002.tar.gz
dla2csv.xex: only update percentage every other y.
-rw-r--r--dla2csv.c8
-rw-r--r--dla2csv.xexbin10909 -> 10917 bytes
2 files changed, 5 insertions, 3 deletions
diff --git a/dla2csv.c b/dla2csv.c
index 98d1173..413229d 100644
--- a/dla2csv.c
+++ b/dla2csv.c
@@ -479,9 +479,11 @@ int convert(void) {
clear_keystroke();
return 0;
}
- backspace2();
- printf("%02d", y * 100 / HEIGHT); /* percentage */
- fflush(stdout);
+ if(y & 1) {
+ backspace2();
+ printf("%02d", y * 100 / HEIGHT); /* percentage */
+ fflush(stdout);
+ }
for(x = 0; x < BYTEWIDTH; ++x) {
if(*inp) {
pixx = x * 8;
diff --git a/dla2csv.xex b/dla2csv.xex
index fe0eb4e..7eefaa1 100644
--- a/dla2csv.xex
+++ b/dla2csv.xex
Binary files differ