From 48f63aaae76b9700c4da2bb0bc3637f79d26b807 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Wed, 11 Mar 2020 17:16:02 +0800 Subject: [PATCH] disable alpha and colorkey for shadow screen --- src/newgal/pcxvfb/pcxvfb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/newgal/pcxvfb/pcxvfb.c b/src/newgal/pcxvfb/pcxvfb.c index 9ce03997..e18c8dcd 100644 --- a/src/newgal/pcxvfb/pcxvfb.c +++ b/src/newgal/pcxvfb/pcxvfb.c @@ -720,6 +720,10 @@ static GAL_Surface *PCXVFB_SetVideoMode (_THIS, GAL_Surface *current, current->pixels = real_pixels + (current->pitch * current->h); this->hidden->shadow_screen = current; + GAL_SetClipRect (this->hidden->real_screen, NULL); + GAL_SetColorKey (this->hidden->shadow_screen, 0, 0); + GAL_SetAlpha (this->hidden->shadow_screen, 0, 0); + #ifdef _MGSCHEMA_COMPOSITING this->info.hw_cursor = 1; this->hidden->cursor = NULL;