Get theme tile drawing working again.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28851 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-10-19 14:21:05 +00:00
parent bded0c0c91
commit 0774868696
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2009-10-19 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSThemeTools.m: Fix broken drawing due to error in
the ([-validateTilesSizeWithImage:]) method.
2009-10-19 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSThemeTools.m: Fix last changes to compile again (variable

View file

@ -883,8 +883,11 @@ withRepeatedImage: (NSImage*)image
}
else
{
images[i] = RETAIN(image);
/* This breaks drawing at present.
images[i]
= [[self extractImageFrom: image withRect: rects[i]] retain];
*/
}
}
}
@ -1080,6 +1083,9 @@ withRepeatedImage: (NSImage*)image
rect.size.width - cls.width - crs.width,
rect.size.height - bms.height - tms.height);
[self repeatFillRect: rect];
[self drawCornersRect: rect];
[[GSTheme theme] fillRect: inFill
withRepeatedImage: images[TileCM]
fromRect: rects[TileCM]