mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
af3662775e
When resource scale is set we need to generate a scaled PangoLayout (by adding a new scale attribute, or adjusting the one we already have according the resource scale), then it has to be painted with proper scaling matrix. So everything that has to do with PangoLayout has to be in real coordinates, then clutter logical coords multiplied by resource scaling. While the actual size of the layout is the one of the PangoLayout divided by resource scale. We map the text positions to logical coords by default, while using the pixel coordinates when painting. We fall back to scale 1 when calculating preferred size if no scale is known. The pango layout will not have set a layout scale attribute, meaning it'll be 1, thus we should just assume the layout scale is 1 here. Not doing so might result in the preferred size being 0x0 meaning the actor won't be laid out properly. Fixes https://gitlab.gnome.org/GNOME/mutter/issues/135 https://bugzilla.gnome.org/show_bug.cgi?id=765011 https://gitlab.gnome.org/GNOME/mutter/merge_requests/3 |
||
---|---|---|
.. | ||
scripts | ||
actor-anchors.c | ||
actor-destroy.c | ||
actor-graph.c | ||
actor-invariants.c | ||
actor-iter.c | ||
actor-layout.c | ||
actor-meta.c | ||
actor-offscreen-redirect.c | ||
actor-paint-opacity.c | ||
actor-pick.c | ||
actor-shader-effect.c | ||
actor-size.c | ||
behaviours.c | ||
binding-pool.c | ||
cairo-texture.c | ||
cally-text.c | ||
color.c | ||
group.c | ||
interval.c | ||
meson.build | ||
path.c | ||
rectangle.c | ||
script-parser.c | ||
state.c | ||
text-cache.c | ||
text.c | ||
texture-fbo.c | ||
texture.c | ||
timeline-interpolate.c | ||
timeline-progress.c | ||
timeline-rewind.c | ||
timeline.c | ||
units.c |