Kaydet (Commit) 82491856 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

rendercontext: Improve comboboxes in the double-buffered toolbar.

Change-Id: I91bfb4ea4672ff09482679f8fcf18a65e5a6ee3c
üst 5988d741
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment