From: Toni Wilen Date: Thu, 6 Sep 2018 15:57:25 +0000 (+0300) Subject: Check also shres_shift. X-Git-Tag: 4100~93 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=affc27e709981a34ed2dc1752d5d6292f705aa13;p=francis%2Fwinuae.git Check also shres_shift. --- 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)