diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-11-24 10:19:43 +0000 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2016-12-10 06:39:25 +0000 |
commit | 3a9609653697ac851ee1c55a41aa143d3bca335e (patch) | |
tree | f30606ce67af5c38b2a8963cd4ec882e62c78523 /vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx | |
parent | 9774b71017bea62dfbff235886daf7c454bcd0d0 (diff) |
Resolves: rhbz#1362453 use the cairo scaling approach on both wayland and X
so have the same hidpi solution on both setups
Change-Id: I669eba55830a28c1850f4679dfa824798bd3a383
Reviewed-on: https://gerrit.libreoffice.org/31540
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Diffstat (limited to 'vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx')
-rw-r--r-- | vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx index f8be136ccd2b..8b654d97c9d4 100644 --- a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx @@ -3123,14 +3123,8 @@ void GtkSalGraphics::GetResolution(sal_Int32& rDPIX, sal_Int32& rDPIY) double fResolution = -1.0; g_object_get(pScreen, "resolution", &fResolution, nullptr); - int nScaleFactor = 1; - -#if GTK_CHECK_VERSION(3, 10, 0) - nScaleFactor = GtkSalFrame::getDisplay()->IsOwnHiDpiScale() ? gtk_widget_get_scale_factor(mpWindow) : 1; -#endif - if (fResolution > 0.0) - rDPIX = rDPIY = sal_Int32(fResolution * nScaleFactor); + rDPIX = rDPIY = sal_Int32(fResolution); else rDPIX = rDPIY = 96; } |