mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user