The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 13 Dec 2015 18:08:43 +0000 (19:08 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 13 Dec 2015 18:08:43 +0000 (19:08 +0100)
commit be6a3636f34e151d70c124cbd30707ee0a9b69a9
tree ab0aa96e610eedd12373b1adbf24176ee504719d
parent 8aa3dabe206fee7247d7d659effed4a13a1d2b42
Fix right edge of scaled background images

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;