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

rendercontext: Fix rendering of double-buffered menubar.

Change-Id: Iea74564ef0ae2188ae29f106c4416df1fe827b42
üst e5a8d8c0
...@@ -1822,7 +1822,9 @@ void Menu::ImplPaint(vcl::RenderContext& rRenderContext, ...@@ -1822,7 +1822,9 @@ void Menu::ImplPaint(vcl::RenderContext& rRenderContext,
aTopLeft.Y() += ImplGetSVData()->maNWFData.mnMenuFormatBorderY; aTopLeft.Y() += ImplGetSVData()->maNWFData.mnMenuFormatBorderY;
} }
Size aOutSz = rRenderContext.GetOutputSizePixel(); // for the computations, use size of the underlying window, not of RenderContext
Size aOutSz = pWindow->GetOutputSizePixel();
size_t nCount = pItemList->size(); size_t nCount = pItemList->size();
if (bLayout) if (bLayout)
mpLayoutData->m_aVisibleItemBoundRects.clear(); mpLayoutData->m_aVisibleItemBoundRects.clear();
......
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