mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Display: use height to calculate scale factor
Seems more accurate
This commit is contained in:
@@ -182,7 +182,7 @@ void ffPrintDisplay(FFDisplayOptions* options)
|
||||
else
|
||||
buf[0] = '\0';
|
||||
|
||||
double scaleFactor = (double) result->width / (double) result->scaledWidth;
|
||||
double scaleFactor = (double) result->height / (double) result->scaledHeight;
|
||||
|
||||
FF_PRINT_FORMAT_CHECKED(key.chars, 0, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY, ((FFformatarg[]) {
|
||||
FF_FORMAT_ARG(result->width, "width"),
|
||||
|
||||
Reference in New Issue
Block a user