From d9403b4899593622453ec9f390be97d1529c931e Mon Sep 17 00:00:00 2001 From: narzoul Date: Fri, 3 May 2024 16:30:59 +0200 Subject: [PATCH] Fixed flickering GUI elements in Sacred Gold E.g. the introduction text of the Daemon character when starting a new campaign. Issue happened only with ResolutionScale=app. --- DDrawCompat/Gdi/CompatDc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/DDrawCompat/Gdi/CompatDc.cpp b/DDrawCompat/Gdi/CompatDc.cpp index 6c0b463..b1c5552 100644 --- a/DDrawCompat/Gdi/CompatDc.cpp +++ b/DDrawCompat/Gdi/CompatDc.cpp @@ -20,6 +20,7 @@ namespace Gdi auto gdiResource = D3dDdi::Device::getGdiResource(); if (gdiResource) { + gdiResource->getDevice().flushPrimitives(); D3dDdi::SurfaceRepository::enableSurfaceCheck(false); if (isReadOnly) {