[Libreoffice-commits] core.git: vcl/win

Michael Meeks michael.meeks at collabora.com
Tue Dec 2 00:21:48 PST 2014


 vcl/win/source/gdi/salvd.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 29daf8efdf1beb5972a8cd3d2572c374e831b136
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Mon Dec 1 09:27:35 2014 +0000

    vcl: re-init windows graphics impl after virtualdevice size change.
    
    Change-Id: I6188617aa2cf2e237ec0724d1442564fbf3fe297

diff --git a/vcl/win/source/gdi/salvd.cxx b/vcl/win/source/gdi/salvd.cxx
index 6758b09..07d9ce8 100644
--- a/vcl/win/source/gdi/salvd.cxx
+++ b/vcl/win/source/gdi/salvd.cxx
@@ -26,6 +26,7 @@
 #include <win/salinst.h>
 #include <win/salgdi.h>
 #include <win/salvd.h>
+#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


More information about the Libreoffice-commits mailing list