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 1cd87dc commit 18f3809Copy full SHA for 18f3809
1 file changed
src/modules/display/display.c
@@ -103,8 +103,8 @@ bool ffPrintDisplay(FFDisplayOptions* options)
103
104
FF_STRBUF_AUTO_DESTROY buffer = ffStrbufCreate();
105
double inch = sqrt(result->physicalWidth * result->physicalWidth + result->physicalHeight * result->physicalHeight) / 25.4;
106
- uint32_t scaledWidth = result->width * 96 / result->dpi;
107
- 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;
108
double scaleFactor = (double) result->dpi / 96.;
109
110
if(options->moduleArgs.outputFormat.length == 0)
0 commit comments