mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:40:38 +00:00
* Source/Functions.m (NSDrawNinePartImage): Bugfix in flipped drawing code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33748 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d147d93adf
commit
eb59071e88
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-08-15 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/Functions.m (NSDrawNinePartImage): Bugfix in flipped drawing code
|
||||
|
||||
2011-08-15 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/Functions.m:
|
||||
|
|
|
@ -376,7 +376,7 @@ static void GSDrawRepeatingImage(NSRect aRect, NSImage *image, NSCompositingOper
|
|||
NSRect drawRect;
|
||||
drawRect.size = imageSize;
|
||||
drawRect.origin.x = aRect.origin.x + (x * imageSize.width);
|
||||
drawRect.origin.y = flipped ? (NSMaxY(aRect) - (y * imageSize.height))
|
||||
drawRect.origin.y = flipped ? (NSMaxY(aRect) - ((y + 1) * imageSize.height))
|
||||
: (aRect.origin.y + (y * imageSize.height));
|
||||
|
||||
[image drawInRect: drawRect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue