jcs
/subtext
/amendments
/476
util: In progress, if string looks like it will wrap, move text up
jcs made amendment 476 about 1 year ago
--- util.c Mon Mar 27 21:32:52 2023
+++ util.c Mon Apr 10 21:44:25 2023
@@ -601,6 +601,11 @@ progress(char *format, ...)
GetDItem(progress_dialog, 1, &ttype, &thandle, &trect);
SetIText(thandle, progress_s);
+ if (progress_s[0] > 30) {
+ trect.top -= 8;
+ trect.bottom += 16;
+ SetDItem(progress_dialog, 1, ttype, thandle, &trect);
+ }
ShowWindow(progress_dialog);
DrawDialog(progress_dialog);