diff options
author | Victor Kareh <[email protected]> | 2018-03-29 16:09:16 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-04-05 09:08:43 +0200 |
commit | 1a14801e9e24139efd5bff2a351405fd05d44096 (patch) | |
tree | e45d017bb1a88502acd70494bafff05d1888d86b /eel/eel-background.c | |
parent | 4c377bad72d5c873999c09fcbc8a2ac6aa76d4d6 (diff) | |
download | caja-1a14801e9e24139efd5bff2a351405fd05d44096.tar.bz2 caja-1a14801e9e24139efd5bff2a351405fd05d44096.tar.xz |
Scale screen dimensions
Diffstat (limited to 'eel/eel-background.c')
-rw-r--r-- | eel/eel-background.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eel/eel-background.c b/eel/eel-background.c index e9b4b2cf..02b4d857 100644 --- a/eel/eel-background.c +++ b/eel/eel-background.c @@ -308,8 +308,9 @@ drawable_get_adjusted_size (EelBackground *self, if (self->details->is_desktop) { GdkScreen *screen = gtk_widget_get_screen (self->details->widget); - *width = WidthOfScreen (gdk_x11_screen_get_xscreen (screen)); - *height = HeightOfScreen (gdk_x11_screen_get_xscreen (screen)); + gint scale = gtk_widget_get_scale_factor (self->details->widget); + *width = WidthOfScreen (gdk_x11_screen_get_xscreen (screen)) / scale; + *height = HeightOfScreen (gdk_x11_screen_get_xscreen (screen)) / scale; } else { |