Monitor: improve refreshRate formatting

This commit is contained in:
李通洲
2024-08-05 13:49:32 +08:00
parent b24877af0b
commit 312d4cc518
+1 -1
View File
@@ -54,7 +54,7 @@ void ffPrintMonitor(FFMonitorOptions* options)
printf("%ux%u px", display->width, display->height);
if (display->refreshRate > 0)
printf(" @ %.3f Hz", display->refreshRate);
printf(" @ %g Hz", ((int) (display->refreshRate * 1000 + 0.5)) / 1000.0);
if (inch > 0)
printf(" - %ux%u mm (%.2f inches, %.2f ppi)\n", display->physicalWidth, display->physicalHeight, inch, ppi);
else