Neil Roberts 38da6b4a0e clutter-text: Round the layout width to nearest integer not down
When converting the floating point allocation width to an integer
multiple of PANGO_SCALE to give to the PangoLayout it can sometimes
end up slightly short of the allocated size due to rounding
errors. This can cause some of the lines to be wrapped differently
when a non-integer-aligned position is used (such as when animating
text). It works better to round the number to the nearest integer by
adding 0.5 instead of letting the default float cast truncate it
downwards.

http://bugzilla.openedhand.com/show_bug.cgi?id=2170
2010-06-14 12:00:26 +01:00
..
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-06-03 14:10:55 +01:00
2010-03-03 10:47:42 +00:00
2010-03-02 11:12:32 +00:00
2010-06-11 16:09:36 +01:00
2010-05-25 11:13:03 +01:00
2010-06-11 16:09:36 +01:00
2010-03-02 11:12:32 +00:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-06-09 11:55:19 +01:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-03-02 11:12:32 +00:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-02-03 14:38:13 +00:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-02-01 10:40:34 +00:00
2010-03-02 11:12:32 +00:00
2010-06-10 18:40:29 +01:00
2010-06-11 18:12:54 +01:00