diff --git a/vcl/win/source/gdi/salvd.cxx b/vcl/win/source/gdi/salvd.cxx index 6758b098e112..07d9ce86a1f6 100644 --- a/vcl/win/source/gdi/salvd.cxx +++ b/vcl/win/source/gdi/salvd.cxx @@ -26,6 +26,7 @@ #include #include #include +#include "opengl/win/gdiimpl.hxx" HBITMAP WinSalVirtualDevice::ImplCreateVirDevBitmap(HDC hDC, long nDX, long nDY, sal_uInt16 nBitCount, void **ppData) { @@ -213,6 +214,14 @@ bool WinSalVirtualDevice::SetSize( long nDX, long nDY ) SelectBitmap( getHDC(), hNewBmp ); DeleteBitmap( mhBmp ); mhBmp = hNewBmp; + + if (mpGraphics) + { + WinOpenGLSalGraphicsImpl *pImpl; + pImpl = dynamic_cast< WinOpenGLSalGraphicsImpl * >(mpGraphics->getImpl()); + if (pImpl) + pImpl->Init(); + } return TRUE; } else