GNOME Bugzilla – Bug 758937
Blurry widgets on hidpi displays
Last modified: 2015-12-03 23:25:13 UTC
It seems we're missing the propagation of the scale factor and it ends up drawing 1x scale widgets into a 2x scaled. That looks blurry :(
Created attachment 316641 [details] [review] actor: fix incorrect allocation logic Using a pointer comparison to prevent resetting the size of the canvas/actor is incorrect on Wayland. Let's make that logic X11 only.
Created attachment 316642 [details] [review] actor: propagate scale factor from embedder to embedded We need to set the scale factor correctly on the embedded Gtk+ widgets to avoid blurry widgets on hidpi displays.
Review of attachment 316641 [details] [review]: ::: clutter-gtk/gtk-clutter-actor.c @@ +343,2 @@ + if (pixmap != priv->pixmap) + clutter_x11_texture_pixmap_set_pixmap (CLUTTER_X11_TEXTURE_PIXMAP (priv->texture), pixmap); Shouldn't the priv->pixmap be replaced here? The original code stored the surface pointer.
Review of attachment 316642 [details] [review]: ::: clutter-gtk/gtk-clutter-actor.c @@ +329,3 @@ + * code know the size to allocate? + */ + gtk_widget_get_preferred_width (priv->widget, &dummy, NULL); I guess we could change the behaviour so that we could honour the content-gravity, and use the preferred size of the widget, instead of allocating the size of the actor. But that's for another commit.
Created attachment 316726 [details] [review] actor: fix incorrect allocation logic Using a pointer comparison to prevent resetting the size of the canvas/actor is incorrect on Wayland. Let's make that logic X11 only.
Review of attachment 316641 [details] [review]: ::: clutter-gtk/gtk-clutter-actor.c @@ +343,2 @@ + if (pixmap != priv->pixmap) + clutter_x11_texture_pixmap_set_pixmap (CLUTTER_X11_TEXTURE_PIXMAP (priv->texture), pixmap); Thanks, updated that!
Review of attachment 316642 [details] [review]: Okay.
Review of attachment 316726 [details] [review]: Okay.
Just adding that this needs the GTK+ patch (from the blocker bug) to land first.
Review of attachment 316642 [details] [review]: Pushed to master.
Review of attachment 316726 [details] [review]: Pushed to master.