From affc27e709981a34ed2dc1752d5d6292f705aa13 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Thu, 6 Sep 2018 18:57:25 +0300 Subject: [PATCH] Check also shres_shift. --- drawing.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drawing.cpp b/drawing.cpp index f081441d..6d346a2f 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -79,7 +79,7 @@ static void lores_set(int lores) { int old = lores_shift; lores_shift = lores; - if (lores_shift != old) { + if (lores_shift != old || shres_shift != RES_MAX - lores) { shres_shift = RES_MAX - lores; pfield_set_linetoscr(); } @@ -858,8 +858,10 @@ static int unpainted; STATIC_INLINE xcolnr getbgc (int blank) { #if BG_COLOR_DEBUG - if (blank) + if (blank > 0) return xcolors[0x088]; + else if (blank < 0) + return xcolors[0x0f8]; else if (hposblank == 1) return xcolors[0xf00]; else if (hposblank == 2) -- 2.47.3