summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-11-15 18:17:57 +0100
committerLuboš Luňák <l.lunak@collabora.com>2021-11-16 10:39:27 +0100
commit29a2120fcf56ef7fcdb5c95e896e4366454b63bf (patch)
tree29681628e4d49df67d968c0585661a1074e3445b
parentb5983dbe2c41f38e653201574cf20cd4bd76e950 (diff)
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.lunak@collabora.com>
-rw-r--r--vcl/skia/x11/gdiimpl.cxx5
1 files changed, 3 insertions, 2 deletions
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().