File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ void ffPrintDisplay(FFDisplayOptions* options)
100
100
}
101
101
102
102
FF_STRBUF_AUTO_DESTROY buffer = ffStrbufCreate ();
103
- double inch = sqrt (result -> physicalWidth * result -> physicalWidth + result -> physicalHeight * result -> physicalHeight ) / 25.4 ;
103
+ uint32_t inch = ( uint32_t ) ( sqrt (result -> physicalWidth * result -> physicalWidth + result -> physicalHeight * result -> physicalHeight ) / 25.4 + 0.5 ) ;
104
104
105
105
if (options -> moduleArgs .outputFormat .length == 0 )
106
106
{
@@ -121,8 +121,8 @@ void ffPrintDisplay(FFDisplayOptions* options)
121
121
result -> scaledHeight > 0 && result -> scaledHeight != result -> height )
122
122
ffStrbufAppendF (& buffer , " (as %ix%i)" , result -> scaledWidth , result -> scaledHeight );
123
123
124
- if (inch > 0 )
125
- ffStrbufAppendF (& buffer , " in %i″" , ( uint32_t ) ( inch + 0.5 ) );
124
+ if (inch > 1 )
125
+ ffStrbufAppendF (& buffer , " in %i″" , inch );
126
126
127
127
if (result -> type != FF_DISPLAY_TYPE_UNKNOWN )
128
128
ffStrbufAppendS (& buffer , result -> type == FF_DISPLAY_TYPE_BUILTIN ? " [Built-in]" : " [External]" );
You can’t perform that action at this time.
0 commit comments