summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-10-08 11:47:17 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-10-10 11:14:12 +0200
commitdb75c4e194cb97aa4e352fa38a45c012ce597e30 (patch)
tree6bfa8e4388b3feed25559248d2e9cc1698eec1d5
parent3d1b9405ad3507d788f7321d3aaddf40febf35d8 (diff)
make WinSalVirtualDevice::SetSize() always call Init() for all Impl's
I don't see why this should be OpenGL-only. For WinSalGraphicsImpl it's a no-op anyway, and for other Impl's it may be useful to find out that they have been in fact resized. For Skia this is necessary because Init() the first time may get called with empty size. Change-Id: I4a8fa0fc633b415735d3633e89f208ab1c1f1229
-rw-r--r--vcl/win/gdi/salvd.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/vcl/win/gdi/salvd.cxx b/vcl/win/gdi/salvd.cxx
index 57ad9581b1c4..e1cacb8b098a 100644
--- a/vcl/win/gdi/salvd.cxx
+++ b/vcl/win/gdi/salvd.cxx
@@ -218,12 +218,7 @@ bool WinSalVirtualDevice::SetSize( long nDX, long nDY )
mhBmp.reset(hNewBmp);
if (mpGraphics)
- {
- WinOpenGLSalGraphicsImpl *pImpl;
- pImpl = dynamic_cast< WinOpenGLSalGraphicsImpl * >(mpGraphics->GetImpl());
- if (pImpl)
- pImpl->Init();
- }
+ mpGraphics->GetImpl()->Init();
return true;
}