Kaydet (Commit) 192a0152 authored tarafından Caolán McNamara's avatar Caolán McNamara

gtk3+hidpi: ScreenSize is in real pixels, scale it down

Change-Id: I867425bfd20ec67f76e570a6e71e11c437af427c
Reviewed-on: https://gerrit.libreoffice.org/43174Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst eed96773
...@@ -1399,7 +1399,13 @@ void GtkSalFrame::Center() ...@@ -1399,7 +1399,13 @@ void GtkSalFrame::Center()
Size GtkSalFrame::calcDefaultSize() 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() void GtkSalFrame::SetDefaultSize()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment