From f24358179685d9ecbc897543488ad56fa9e3a485 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 29 Jul 2020 08:22:22 +1000 Subject: Backport: Use dynamic_cast for SurfaceGDI::Copy as it will fail better if a mistake made. Backport of changeset 8464:73514a371867. --- win32/PlatWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 6cfb02328..b595308d4 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -982,7 +982,7 @@ void SurfaceGDI::Copy(PRectangle rc, Point from, Surface &surfaceSource) { ::BitBlt(hdc, static_cast(rc.left), static_cast(rc.top), static_cast(rc.Width()), static_cast(rc.Height()), - static_cast(surfaceSource).hdc, + dynamic_cast(surfaceSource).hdc, static_cast(from.x), static_cast(from.y), SRCCOPY); } -- cgit v1.2.3