-
-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't repeat background images when it's not needed
For now, we only avoid the repetition when we have no-repeat for x and y axes. We could do this when the painting area is smaller than the image and when the position doesn't require a repetition. But… Who cares? Fix #238. There was also a bug in the size of the surface needed to draw images that are not repeated. Before this commit, the repeat size was the painting size * 2 to avoid glitches at the boundaries. But we have to be sure to draw at least the whole image, as the image may be translated before being drawn. The multiplication is not needed as we don't repeat the image anymore. Related to #669.
- Loading branch information
Showing
1 changed file
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters