diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-11-17 04:35:29 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-11-17 22:38:58 +0000 |
commit | dfeaee01a30109883e41f45faf28fc247dadb3b2 (patch) | |
tree | 26e1bf401c7f4bdba70081991d2b6f030183020f /vcl/opengl/win/gdiimpl.cxx | |
parent | 5b14cd7d8d293365ebc03ee1442610180c07ab8d (diff) |
vcl: copyBits should operate on mrParent if no context supplied.
eg. OutputDevice::DrawOutDev:
mpGraphics->CopyBits( aPosAry, NULL, this, NULL );
Change-Id: I0b041bb5aa6aba573b9f589842084722481cb438
Diffstat (limited to 'vcl/opengl/win/gdiimpl.cxx')
-rw-r--r-- | vcl/opengl/win/gdiimpl.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/opengl/win/gdiimpl.cxx b/vcl/opengl/win/gdiimpl.cxx index e829ca445f42..67a192eb7f12 100644 --- a/vcl/opengl/win/gdiimpl.cxx +++ b/vcl/opengl/win/gdiimpl.cxx @@ -18,6 +18,12 @@ WinOpenGLSalGraphicsImpl::WinOpenGLSalGraphicsImpl(WinSalGraphics& rGraphics): { } +void WinOpenGLSalGraphicsImpl::copyBits( const SalTwoRect& rPosAry, SalGraphics* pSrcGraphics ) +{ + OpenGLSalGraphicsImpl *pImpl = pSrcGraphics ? dynamic_cast< OpenGLSalGraphicsImpl* >(pSrcGraphics->GetImpl()) : static_cast< OpenGLSalGraphicsImpl *>(mrParent.GetImpl()); + OpenGLSalGraphicsImpl::DoCopyBits( rPosAry, pImpl ); +} + GLfloat WinOpenGLSalGraphicsImpl::GetWidth() const { if( mrParent.gethWnd() && IsWindow( mrParent.gethWnd() ) ) |