diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-05-24 01:59:01 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-05-24 02:14:40 +0200 |
commit | 891304bb0ad3af9d8d73f947f25477abf57485a4 (patch) | |
tree | eb5ff73b6087f30584a87fa9717631fc8d2a712e /vcl/source/control | |
parent | 70bdecd7f0b423734d1b9042141b58180032caf9 (diff) |
rendercontext: Improve comboboxes in the double-buffered toolbar.
Change-Id: I91bfb4ea4672ff09482679f8fcf18a65e5a6ee3c
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/edit.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 114bab5b280b..e67f09c5d1f8 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -606,7 +606,7 @@ void Edit::ImplRepaint(vcl::RenderContext& rRenderContext, bool bLayout) } // draw normal text Color aNormalTextColor = rRenderContext.GetTextColor(); - SetClipRegion(aNormalClipRegion); + rRenderContext.SetClipRegion(aNormalClipRegion); if (IsPaintTransparent()) rRenderContext.SetTextFillColor(); @@ -1027,6 +1027,10 @@ void Edit::ImplClearBackground(vcl::RenderContext& rRenderContext, long nXStart, void Edit::ImplPaintBorder(vcl::RenderContext& rRenderContext, long nXStart, long nXEnd) { + // this is not needed when double-buffering + if (SupportsDoubleBuffering()) + return; + Point aTmpPoint; Rectangle aRect(aTmpPoint, GetOutputSizePixel()); aRect.Left() = nXStart; |