diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2016-04-08 17:41:21 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2016-04-08 19:10:13 +0900 |
commit | 094faaae6982472375420e57d6b9e34eefdbced8 (patch) | |
tree | 5f1e5fcccef32941f1d4ec14f6e12b3fd3d90d07 /vcl/inc/openglgdiimpl.hxx | |
parent | 80d0b2916db81a7f47bb1d368677016bbb870df6 (diff) |
opengl: fix wrong clipping when drawing text
Change-Id: I41a182c5309586337032328dfe82b1c6715f0dc2
Diffstat (limited to 'vcl/inc/openglgdiimpl.hxx')
-rw-r--r-- | vcl/inc/openglgdiimpl.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/inc/openglgdiimpl.hxx b/vcl/inc/openglgdiimpl.hxx index 756190135daa..ef23328658f1 100644 --- a/vcl/inc/openglgdiimpl.hxx +++ b/vcl/inc/openglgdiimpl.hxx @@ -148,7 +148,7 @@ public: void DrawAxialGradient( const Gradient& rGradient, const Rectangle& rRect ); void DrawRadialGradient( const Gradient& rGradient, const Rectangle& rRect ); void DeferredTextDraw(OpenGLTexture& rTexture, const SalColor nMaskColor, const SalTwoRect& rPosAry); - void FlushDeferredDrawing(bool bInDraw = false); + void FlushDeferredDrawing(); public: // get the width of the device @@ -166,6 +166,9 @@ public: /// Oddly not all operations obey the XOR option. enum XOROption { IGNORE_XOR, IMPLEMENT_XOR }; + // initialize pre-draw state + void InitializePreDrawState(XOROption eOpt = IGNORE_XOR); + // operations to do before painting void PreDraw(XOROption eOpt = IGNORE_XOR); |