зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
a712b0f753
Коммит
5ac5368bf6
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче