mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
cc75fc88ee
When painting a ClutterText, there are two different aspects that should be taken into account: 1. The allocated size of the actor; and 2. The reported size of the PangoLayout, which may be smaller or bigger than (1) When (2) is bigger than (1), ClutterText has to clip the text to only draw at the visible contents over the actor surface. In addition to that, ClutterText also tracks the cursor position, which makes clipping a bit more complicated. The current ClutterTextNode.draw() implementation assumes that the (1) also represents (2), which is not true. This makes clipping not work. Fix that by assuming that the position to draw the PangoLayout is passed as the second rectangle, and the actor size is the first one. |
||
---|---|---|
.. | ||
build | ||
clutter | ||
examples | ||
tests | ||
.gitignore | ||
configure.ac | ||
Makefile.am |