From 5ac5368bf6888e70cbe1df5f2cf44ac5feca6c1e Mon Sep 17 00:00:00 2001 From: Jan Horak Date: Fri, 24 May 2019 06:10:42 +0000 Subject: [PATCH] Bug 1546343 - Enable hi-res widget rendering for X11 r=stransky The code also works for X11, so no reasons to keep it just for Wayland Differential Revision: https://phabricator.services.mozilla.com/D32323 --HG-- extra : moz-landing-system : lando --- widget/gtk/nsNativeThemeGTK.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/widget/gtk/nsNativeThemeGTK.cpp b/widget/gtk/nsNativeThemeGTK.cpp index c94a6e7773ed..1389133b702c 100644 --- a/widget/gtk/nsNativeThemeGTK.cpp +++ b/widget/gtk/nsNativeThemeGTK.cpp @@ -866,9 +866,8 @@ static void DrawThemeWithCairo(gfxContext* aContext, DrawTarget* aDrawTarget, static auto sCairoSurfaceSetDeviceScalePtr = (void (*)(cairo_surface_t*, double, double))dlsym( RTLD_DEFAULT, "cairo_surface_set_device_scale"); - // Support HiDPI widget styles on Wayland only for now. - bool useHiDPIWidgets = !isX11Display && (aScaleFactor != 1) && - (sCairoSurfaceSetDeviceScalePtr != nullptr); + bool useHiDPIWidgets = + (aScaleFactor != 1) && (sCairoSurfaceSetDeviceScalePtr != nullptr); Point drawOffsetScaled; Point drawOffsetOriginal;