We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d73ecb commit 179539cCopy full SHA for 179539c
1 file changed
src/modules/display/display.c
@@ -45,8 +45,8 @@ bool ffPrintDisplay(FFDisplayOptions* options)
45
}
46
else
47
{
48
- uint32_t scaledWidth = result->width * 96 / result->dpi;
49
- 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;
50
ffStrbufAppendF(&buffer, "%ix%i", scaledWidth, scaledHeight);
51
52
0 commit comments