mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
* Source/Functions.m (NSDrawNinePartImage): Pixel-align drawing rect using
-[NSView centerScanRect] git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33761 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8770276b3b
commit
e4979c9102
2 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-08-17 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/Functions.m (NSDrawNinePartImage): Pixel-align drawing rect using
|
||||
-[NSView centerScanRect]
|
||||
|
||||
2011-08-15 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/Functions.m (NSDrawNinePartImage): Bugfix when drawing with
|
||||
|
|
|
@ -400,11 +400,12 @@ void NSDrawNinePartImage(NSRect aRect, NSImage *topLeft, NSImage *topMiddle,
|
|||
NSImage *bottomRight, NSCompositingOperation op,
|
||||
CGFloat fraction, BOOL flipped)
|
||||
{
|
||||
// FIXME: round in device coordinate system
|
||||
aRect = NSMakeRect(GSRoundTowardsInfinity(aRect.origin.x),
|
||||
GSRoundTowardsInfinity(aRect.origin.y),
|
||||
GSRoundTowardsInfinity(aRect.size.width),
|
||||
GSRoundTowardsInfinity(aRect.size.height));
|
||||
NSView *focusView = [NSView focusView];
|
||||
|
||||
if (nil != focusView)
|
||||
{
|
||||
aRect = [focusView centerScanRect: aRect];
|
||||
}
|
||||
|
||||
[NSGraphicsContext saveGraphicsState];
|
||||
|
||||
|
|
Loading…
Reference in a new issue