vcl: re-init windows graphics impl after virtualdevice size change.
Change-Id: I6188617aa2cf2e237ec0724d1442564fbf3fe297
This commit is contained in:
committed by
Markus Mohrhard
parent
3cc833098a
commit
29daf8efdf
@@ -26,6 +26,7 @@
|
|||||||
#include <win/salinst.h>
|
#include <win/salinst.h>
|
||||||
#include <win/salgdi.h>
|
#include <win/salgdi.h>
|
||||||
#include <win/salvd.h>
|
#include <win/salvd.h>
|
||||||
|
#include "opengl/win/gdiimpl.hxx"
|
||||||
|
|
||||||
HBITMAP WinSalVirtualDevice::ImplCreateVirDevBitmap(HDC hDC, long nDX, long nDY, sal_uInt16 nBitCount, void **ppData)
|
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 );
|
SelectBitmap( getHDC(), hNewBmp );
|
||||||
DeleteBitmap( mhBmp );
|
DeleteBitmap( mhBmp );
|
||||||
mhBmp = hNewBmp;
|
mhBmp = hNewBmp;
|
||||||
|
|
||||||
|
if (mpGraphics)
|
||||||
|
{
|
||||||
|
WinOpenGLSalGraphicsImpl *pImpl;
|
||||||
|
pImpl = dynamic_cast< WinOpenGLSalGraphicsImpl * >(mpGraphics->getImpl());
|
||||||
|
if (pImpl)
|
||||||
|
pImpl->Init();
|
||||||
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user