From a59b416dd9bce2aad0a64f9c97e8ef2bdf206113 Mon Sep 17 00:00:00 2001 From: tomcw Date: Mon, 26 Aug 2019 09:59:29 +0100 Subject: [PATCH] Removed GdiSetBatchLimit(512) from init: - GdiSetBatchLimit() fails with 0 - GdiGetBatchLimit() returns 20 Removed GdiFlush from VideoRefreshScreen(): - GdiFlush() only for GDI draw functions (not StretchBlt!) that return a BOOL --- source/Applewin.cpp | 2 +- source/Video.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Applewin.cpp b/source/Applewin.cpp index 6e3d3314..0608d536 100644 --- a/source/Applewin.cpp +++ b/source/Applewin.cpp @@ -1551,7 +1551,7 @@ int APIENTRY WinMain(HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int) // DO ONE-TIME INITIALIZATION g_hInstance = passinstance; - GdiSetBatchLimit(512); +// GdiSetBatchLimit(512); LogFileOutput("Init: GdiSetBatchLimit()\n"); GetProgramDirectory(); diff --git a/source/Video.cpp b/source/Video.cpp index c7987c40..c9a5c0e9 100644 --- a/source/Video.cpp +++ b/source/Video.cpp @@ -616,7 +616,7 @@ void VideoRefreshScreen ( uint32_t uRedrawWholeScreenVideoMode /* =0*/, bool bRe SRCCOPY); } - GdiFlush(); +// GdiFlush(); } //===========================================================================