Hi again! I am posting a diff file now!
All the best and thank you! Miha
diff --git a/guicast/units.C b/guicast/units.C index 173a1f4..e58826c 100644 --- a/guicast/units.C +++ b/guicast/units.C @@ -171,7 +171,8 @@ char* Units::totext(char *text, { case TIME_SECONDS: seconds = fabs(seconds); - sprintf(text, "%04d.%03d", (int)seconds, (int)(seconds * 1000) % 1000); + sprintf(text, "%7d.%03d", (int)seconds, (int)(seconds * 1000) % 1000); +// sprintf(text, "%04d.%03d", (int)seconds, (int)(seconds * 1000) % 1000); return text; break; @@ -233,31 +234,38 @@ char* Units::totext(char *text, 60 + second) + 0.0000001); - sprintf(text, "%01d:%02d:%02d:%02ld", hour, minute, second, frame); + sprintf(text, "%2d:%02d:%02d:%02ld", hour, minute, second, frame); +//Original was sprintf(text, "%01d:%02d:%02d:%02ld", hour, minute, second, frame); return text; } break; case TIME_SAMPLES: - sprintf(text, "%09ld", to_int64(seconds * sample_rate)); + sprintf(text, "%11ld", to_int64(seconds * sample_rate)); +// Originally sprintf(text, "%09ld", to_int64(seconds * sample_rate)); break; case TIME_SAMPLES_HEX: - sprintf(text, "%08x", to_int64(seconds * sample_rate)); + sprintf(text, "%11x", to_int64(seconds * sample_rate)); +// Originally sprintf(text, "%08x", to_int64(seconds * sample_rate)); break; case TIME_FRAMES: frame = to_int64(seconds * frame_rate); - sprintf(text, "%06ld", frame); + sprintf(text, "%11ld", frame); +// Original sprintf(text, "%06ld", frame); return text; break; case TIME_FEET_FRAMES: frame = to_int64(seconds * frame_rate); feet = (int64_t)(frame / frames_per_foot); - sprintf(text, "%05ld-%02ld", + sprintf(text, "%8ld-%02ld", feet, (int64_t)(frame - feet * frames_per_foot)); +// Original sprintf(text, "%05ld-%02ld", +// feet, +// (int64_t)(frame - feet * frames_per_foot)); return text; break; } @@ -643,7 +651,7 @@ char* Units::format_to_separators(int ti case TIME_HMS: return "0:00:00.000"; case TIME_HMS2: return "0:00:00"; case TIME_HMS3: return "00:00:00"; - case TIME_HMSF: return "0:00:00:00"; + case TIME_HMSF: return "00:00:00:00"; // Originally 0:00:00:00, but I added one for bluedot case TIME_SAMPLES: return 0; case TIME_SAMPLES_HEX: return 0; case TIME_FRAMES: return 0;