Clone in a terminal:
Commit 410c17b
Johan Mattsson - 2015-12-09T09:15:39+00:00
410c17b1f9582d92edfecdd1518946abd30dba8bjohan.mattsson.m@gmail.com

Rotate background images

Changed files (1)

Diff

diff --git a/libbirdfont/BackgroundImage.vala b/libbirdfont/BackgroundImage.valaindex 536aec4..644d367 100644--- a/libbirdfont/BackgroundImage.vala+++ b/libbirdfont/BackgroundImage.vala@@ -472,6 +472,13 @@ public class BackgroundImage {  		// add it 		cr.save ();++		if (img_rotation != 0) {+			cr.translate (Glyph.xc (), Glyph.xc ());+			cr.rotate (img_rotation);+			cr.translate (-Glyph.xc (), -Glyph.xc ());+		}+		 		cr.set_source_surface (scaled_image, 0, 0); 		cr.paint (); 		cr.restore ();

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112