rendernodepaintable: Provide accurate aspect ratio
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Sep 2021 13:28:12 +0000 (09:28 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Sep 2021 14:28:49 +0000 (10:28 -0400)
commit52a849288793e7eede878798a88760c058266f60
tree4def5ca80015f6aacb53a121a19f3d7182c63e29
parent8c34dd58c0213b624f9ba3f4a8eeba76c2429573
rendernodepaintable: Provide accurate aspect ratio

Since we report width and height as integers, the
default implementation of this introduces rounding
errors. This shows up in the node-editor, as having
uneven scale factors like sx=1.0 and sy=1.0035.
Text nodes don't handle uneven scales like that well
and overdraw.
gtk/gtkrendernodepaintable.c