The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix right edge of scaled background images

These changes was commited to the Birdfont repository Sun, 13 Dec 2015 18:08:43 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Sun, 13 Dec 2015 18:08:43 +0000]

Updated Files

libbirdfont/ScaledImage.vala
--- a/libbirdfont/ScaledImage.vala +++ b/libbirdfont/ScaledImage.vala @@ -126,8 +126,8 @@ 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;