From 047bb0ed7d47ce0a08924ea357573b44896a0ee7 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 29 Jul 2020 08:22:22 +1000 Subject: Use dynamic_cast for SurfaceGDI::Copy as it will fail better if a mistake made. --- win32/PlatWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index d906d07f2..1cae686a2 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -978,7 +978,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