From 6e904047f9f42cf8bdafc0301a5a19447e40fe65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 17 Jan 2023 23:07:20 +0800 Subject: [PATCH] Display: document scaled resolution support --- CHANGELOG.md | 1 + src/modules/display.c | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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} }); } }