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
This commit is contained in:
Jan Horak 2019-05-24 06:10:42 +00:00
Родитель a712b0f753
Коммит 5ac5368bf6
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -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;