From d8de9251cafb98c47857bccd3a537b3a6e526977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Tue, 16 May 2023 11:54:36 -0400 Subject: [PATCH] Use video mode aspect ratio when defined rather than pixel size. There's no good argument for this aside from "it feels more right". --- src/conio/x_events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conio/x_events.c b/src/conio/x_events.c index 1a4a79aa54..5481a17981 100644 --- a/src/conio/x_events.c +++ b/src/conio/x_events.c @@ -334,8 +334,8 @@ static void map_window() pthread_mutex_unlock(&vstatlock); if (x_cvstat.aspect_width != 0 && x_cvstat.aspect_height != 0) { - sh->min_aspect.x = sh->max_aspect.x = sh->min_width; - sh->min_aspect.y = sh->max_aspect.y = sh->min_height; + sh->min_aspect.x = sh->max_aspect.x = x_cvstat.aspect_width; + sh->min_aspect.y = sh->max_aspect.y = x_cvstat.aspect_height; } else { sh->min_aspect.x = sh->max_aspect.x = sh->min_width; -- GitLab