Clone in a terminal:
Commit be6a363
Johan Mattsson - 2015-12-13T18:08:43+00:00
be6a3636f34e151d70c124cbd30707ee0a9b69a9johan.mattsson.m@gmail.com

Fix right edge of scaled background images

Changed files (1)

Diff

diff --git a/libbirdfont/ScaledImage.vala b/libbirdfont/ScaledImage.valaindex 13ca59a..3540be3 100644--- a/libbirdfont/ScaledImage.vala+++ b/libbirdfont/ScaledImage.vala@@ -126,8 +126,8 @@ public class ScaledBackground : GLib.Object { 		 		int start_x = (int) ((offset_x / image_width) * size); 		int start_y = (int) ((offset_y / image_height) * size);-		int stop_x = (int) (((offset_x + width) / image_width) * size) + 1;-		int stop_y = (int) (((offset_y + height) / image_height) * size) + 1;+		int stop_x = (int) (((offset_x + width) / image_width) * size) + 2;+		int stop_y = (int) (((offset_y + height) / image_height) * size) + 2;  		if (start_x < 0) { 			start_x = 0;

Contact

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