diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-12-20 18:05:35 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-12-20 19:31:18 +0100 |
commit | 4b191691fb33db96d90a27ae2a09f290d45029bc (patch) | |
tree | 1d1b4a36e5968d044eef5297b258d21429a31fe1 /vcl/source/window | |
parent | 813118bfbb453f812be9e1a30f84908b4e0bfb51 (diff) |
tdf#127022 vcl: fix Windows RTL menu bar
Regression from commit e8d5b8beb5958147235ff955ed38c47b51d860ff
(tdf#113714 vcl menu bar window: avoid flicker, 2019-05-20), the problem
was that while the original render context has RTL set up correctly, the
intermediate virtual device had it disabled all the time.
Change-Id: Ic063c4a6c0537891c0bfceb8927edb97cf1c6e86
Reviewed-on: https://gerrit.libreoffice.org/85624
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/bufferdevice.cxx | 1 | ||||
-rw-r--r-- | vcl/source/window/bufferdevice.hxx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/bufferdevice.cxx b/vcl/source/window/bufferdevice.cxx index d1480588d48f..0092d1ab97e4 100644 --- a/vcl/source/window/bufferdevice.cxx +++ b/vcl/source/window/bufferdevice.cxx @@ -20,6 +20,7 @@ BufferDevice::BufferDevice(const VclPtr<vcl::Window>& pWindow, vcl::RenderContex m_pBuffer->SetTextColor(rRenderContext.GetTextColor()); m_pBuffer->DrawOutDev(Point(0, 0), pWindow->GetOutputSizePixel(), Point(0, 0), pWindow->GetOutputSizePixel(), rRenderContext); + m_pBuffer->EnableRTL(rRenderContext.IsRTLEnabled()); } BufferDevice::~BufferDevice() diff --git a/vcl/source/window/bufferdevice.hxx b/vcl/source/window/bufferdevice.hxx index 26bf28e615fa..5f2471cd26d9 100644 --- a/vcl/source/window/bufferdevice.hxx +++ b/vcl/source/window/bufferdevice.hxx @@ -16,7 +16,7 @@ namespace vcl { /// Buffers drawing on a vcl::RenderContext using a VirtualDevice. -class BufferDevice +class VCL_DLLPUBLIC BufferDevice { ScopedVclPtr<VirtualDevice> m_pBuffer; VclPtr<vcl::Window> m_pWindow; |