diff --git a/CHANGELOG.md b/CHANGELOG.md index 53f43d5ba..0b81f8fca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ Features: * Add `--shell-version` and `--terminal-version` options to disable shell / terminal version detection * Enhance `--percent-type` to allow hiding other texts (#387) * Add Wifi module support for Linux +* Detect scaled resolutions (Windows, macOS) Logos: * Raspbian (@IamNoRobot, #373) diff --git a/src/modules/display.c b/src/modules/display.c index 89496816b..45d93234b 100644 --- a/src/modules/display.c +++ b/src/modules/display.c @@ -37,9 +37,11 @@ void ffPrintDisplay(FFinstance* instance) else { ffPrintFormat(instance, FF_RESOLUTION_MODULE_NAME, moduleIndex, &instance->config.display, FF_RESOLUTION_NUM_FORMAT_ARGS, (FFformatarg[]) { - {FF_FORMAT_ARG_TYPE_INT, &result->width}, - {FF_FORMAT_ARG_TYPE_INT, &result->height}, - {FF_FORMAT_ARG_TYPE_INT, &result->refreshRate} + {FF_FORMAT_ARG_TYPE_UINT, &result->width}, + {FF_FORMAT_ARG_TYPE_UINT, &result->height}, + {FF_FORMAT_ARG_TYPE_UINT, &result->refreshRate}, + {FF_FORMAT_ARG_TYPE_UINT, &result->scaledWidth}, + {FF_FORMAT_ARG_TYPE_UINT, &result->scaledHeight} }); } }