From 2fbb40ab61ca71fb6a1f79f0c3022a2ce0993c2f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 29 Apr 2022 16:54:45 +0100 Subject: [PATCH] Remove RealizeScaleAndOrigin() call from wxMSWDCImpl::Clear() It seems unnecessary here as this function doesn't change neither scale nor the origin, so there should be no need to realize them neither. --- src/msw/dc.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index a588ae82ae..c757728573 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -813,8 +813,6 @@ void wxMSWDCImpl::Clear() // of complex transformation (is e.g. rotated). ::InflateRect(&rect, 1, 1); ::FillRect(GetHdc(), &rect, hbr); - - RealizeScaleAndOrigin(); } bool wxMSWDCImpl::DoFloodFill(wxCoord x,