From 497238e4aed25bb07b3dfe9db5f04609ebae015d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Sun, 7 May 2023 02:46:48 -0400 Subject: [PATCH] Swap the order of defaults so vstat.scaling only gets written once This is just to make it less noise to watch vstat.scaling from gdb. --- 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 da46ab3365..916a198537 100644 --- a/src/conio/x_events.c +++ b/src/conio/x_events.c @@ -542,10 +542,10 @@ static int video_init() lot easier. */ pthread_mutex_lock(&vstatlock); - if (x_cvstat.scaling < 1 || vstat.scaling < 1) - x_cvstat.scaling = vstat.scaling = 1; if (ciolib_initial_scaling) x_cvstat.scaling = vstat.scaling = ciolib_initial_scaling; + if (x_cvstat.scaling < 1 || vstat.scaling < 1) + x_cvstat.scaling = vstat.scaling = 1; pthread_mutex_unlock(&vstatlock); /* Initialize mode 3 (text, 80x25, 16 colors) */ if(load_vmode(&vstat, C80)) -- GitLab