mutter/clutter
Georges Basile Stavracas Neto cc75fc88ee
clutter/paint-nodes: Use texture position to draw pango layout
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.
2018-09-27 17:06:38 -03:00
..
build move everything into a clutter/ directory 2016-04-12 20:04:26 +02:00
clutter clutter/paint-nodes: Use texture position to draw pango layout 2018-09-27 17:06:38 -03:00
examples Make libmutter and friends parallel installable 2017-02-14 11:16:45 +08:00
tests clutter: Stop using g_type_class_add_private() 2018-07-31 23:40:01 +02:00
.gitignore clutter: Remove clutter-build-config.h.in 2016-07-20 14:23:48 +08:00
configure.ac configure: Don't declare functions in AC_TRY_LINK and AC_TRY_COMPILE 2018-03-21 13:14:50 +00:00
Makefile.am move everything into a clutter/ directory 2016-04-12 20:04:26 +02:00