]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Check also shres_shift.
authorToni Wilen <twilen@winuae.net>
Thu, 6 Sep 2018 15:57:25 +0000 (18:57 +0300)
committerToni Wilen <twilen@winuae.net>
Thu, 6 Sep 2018 15:57:25 +0000 (18:57 +0300)
drawing.cpp

index f081441d2b9c19af7d668ffb7cd42771acda1f96..6d346a2fb4844654c4c27ff9e4cd37766f129847 100644 (file)
@@ -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)