diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-10-08 11:47:17 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-11-27 09:55:07 +0100 |
commit | 3027980cdfaa954e4b4c244d3cd493923077d359 (patch) | |
tree | 6119f0f233b09433e96618dbaa16e0124a0f3dc2 /vcl/win/gdi | |
parent | 6335abb04900b8554eab577eea960231e28cf0ad (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
Diffstat (limited to 'vcl/win/gdi')
-rw-r--r-- | vcl/win/gdi/salvd.cxx | 7 |
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; } |