diff options
Diffstat (limited to 'vcl/unx/gtk3/gtk3gtkframe.cxx')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkframe.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index eacd1d716ef3..4b17e9e3ef89 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -1399,7 +1399,13 @@ void GtkSalFrame::Center() Size GtkSalFrame::calcDefaultSize() { - return bestmaxFrameSizeForScreenSize(getDisplay()->GetScreenSize(GetDisplayScreen())); + Size aScreenSize(getDisplay()->GetScreenSize(GetDisplayScreen())); +#if GTK_CHECK_VERSION(3,10,0) + int scale = gtk_widget_get_scale_factor(m_pWindow); + aScreenSize.Width() /= scale; + aScreenSize.Height() /= scale; +#endif + return bestmaxFrameSizeForScreenSize(aScreenSize); } void GtkSalFrame::SetDefaultSize() |