Display: rounds scaled size when calcuating

Follows f50059dc7b
This commit is contained in:
李通洲
2026-03-28 08:50:15 +08:00
parent 6d73ecb944
commit 179539ccba
+2 -2
View File
@@ -45,8 +45,8 @@ bool ffPrintDisplay(FFDisplayOptions* options)
}
else
{
uint32_t scaledWidth = result->width * 96 / result->dpi;
uint32_t scaledHeight = result->height * 96 / result->dpi;
uint32_t scaledWidth = (result->width * 96 + result->dpi / 2) / result->dpi;
uint32_t scaledHeight = (result->height * 96 + result->dpi / 2) / result->dpi;
ffStrbufAppendF(&buffer, "%ix%i", scaledWidth, scaledHeight);
}