mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 14:50:48 +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
ad562c0794
commit
977806c7e1
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>
|
2011-08-15 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
* Source/Functions.m:
|
* Source/Functions.m:
|
||||||
|
|
|
@ -376,7 +376,7 @@ static void GSDrawRepeatingImage(NSRect aRect, NSImage *image, NSCompositingOper
|
||||||
NSRect drawRect;
|
NSRect drawRect;
|
||||||
drawRect.size = imageSize;
|
drawRect.size = imageSize;
|
||||||
drawRect.origin.x = aRect.origin.x + (x * imageSize.width);
|
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));
|
: (aRect.origin.y + (y * imageSize.height));
|
||||||
|
|
||||||
[image drawInRect: drawRect
|
[image drawInRect: drawRect
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue