diff options
Diffstat (limited to 'vcl/source/gdi/salgdilayout.cxx')
-rw-r--r-- | vcl/source/gdi/salgdilayout.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx index 599500bc9ff3..da020434f24c 100644 --- a/vcl/source/gdi/salgdilayout.cxx +++ b/vcl/source/gdi/salgdilayout.cxx @@ -27,11 +27,13 @@ #include <vcl/metaact.hxx> #include <vcl/gdimtf.hxx> #include <vcl/print.hxx> +#include <vcl/opengl/OpenGLContext.hxx> #include <vcl/outdev.hxx> #include <vcl/unowrap.hxx> #include <vcl/settings.hxx> #include <window.h> +#include <openglgdiimpl.hxx> #include <outdev.h> #include <sallayout.hxx> #include <salgdi.hxx> @@ -43,7 +45,7 @@ #include <boost/scoped_array.hpp> #include <boost/scoped_ptr.hpp> -#include "basegfx/polygon/b2dpolygon.hxx" +#include <basegfx/polygon/b2dpolygon.hxx> // The only common SalFrame method @@ -75,6 +77,15 @@ SalGraphics::~SalGraphics() { } +OpenGLContext* SalGraphics::GetOpenGLContext() const +{ + OpenGLSalGraphicsImpl *pImpl = dynamic_cast<OpenGLSalGraphicsImpl*>(GetImpl()); + if (pImpl) + return &pImpl->GetOpenGLContext(); + + return NULL; +} + bool SalGraphics::drawTransformedBitmap( const basegfx::B2DPoint& /* rNull */, const basegfx::B2DPoint& /* rX */, |