vcl/skia/x11/gdiimpl.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 29a2120fcf56ef7fcdb5c95e896e4366454b63bf
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Mon Nov 15 18:17:57 2021 +0100
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Tue Nov 16 10:39:27 2021 +0100

    apply SAL_FORCE_HIDPI_SCALING on X11 even while drawing
    
    It'll draw double-sized 1/4 of the content in the topleft corner
    of windows, but it's still useful for some tests.
    
    Change-Id: I20c6d2382d704ddcd67b8cb81eb7abf37b57a92f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125262
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <l.lu...@collabora.com>

diff --git a/vcl/skia/x11/gdiimpl.cxx b/vcl/skia/x11/gdiimpl.cxx
index 03211d8050dd..fa0f81176a5d 100644
--- a/vcl/skia/x11/gdiimpl.cxx
+++ b/vcl/skia/x11/gdiimpl.cxx
@@ -46,9 +46,10 @@ void 
X11SkiaSalGraphicsImpl::createWindowSurfaceInternal(bool forceRaster)
     assert(!mSurface);
     assert(mX11Parent.GetDrawable() != None);
     RenderMethod renderMethod = forceRaster ? RenderRaster : 
renderMethodToUse();
+    mScaling = getWindowScaling();
     mWindowContext = createWindowContext(mX11Parent.GetXDisplay(), 
mX11Parent.GetDrawable(),
-                                         &mX11Parent.GetVisual(), GetWidth(), 
GetHeight(),
-                                         renderMethod, false);
+                                         &mX11Parent.GetVisual(), GetWidth() * 
mScaling,
+                                         GetHeight() * mScaling, renderMethod, 
false);
     if (mWindowContext)
     {
         // See flushSurfaceToWindowContext().

Reply via email to