mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1131978 - Acknowledge GDK's scale factor in scale calculation. r=karlt
This commit is contained in:
parent
0e941eb46e
commit
dc28f4581f
@ -86,7 +86,7 @@ nsScreenGtk :: GetDPIScale()
|
||||
{
|
||||
double dpiScale = nsIWidget::DefaultScaleOverride();
|
||||
if (dpiScale <= 0.0) {
|
||||
dpiScale = gfxPlatformGtk::GetDPIScale();
|
||||
dpiScale = GetGtkMonitorScaleFactor() * gfxPlatformGtk::GetDPIScale();
|
||||
}
|
||||
return dpiScale;
|
||||
}
|
||||
|
@ -718,11 +718,7 @@ nsWindow::GetDPI()
|
||||
double
|
||||
nsWindow::GetDefaultScaleInternal()
|
||||
{
|
||||
#if (MOZ_WIDGET_GTK == 3)
|
||||
return GdkScaleFactor();
|
||||
#else
|
||||
return gfxPlatformGtk::GetDPIScale();
|
||||
#endif
|
||||
return GdkScaleFactor() * gfxPlatformGtk::GetDPIScale();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
Loading…
Reference in New Issue
Block a user