Fix drawing bug when painting Top-Middle and Bottom-Middle images in GSDrawTiles

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28840 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicolas Roard 2009-10-18 18:35:24 +00:00
parent a49d3efb05
commit 83a8dccb97

View file

@ -1307,10 +1307,10 @@ withRepeatedImage: (NSImage*)image
// Draw Bottom-Middle image repeated
if (rect.size.width > bls.width + brs.width && bms.height > 0)
{
float y = rect.origin.y + rect.size.height - bms.height;
float y = rect.origin.y;
if (flipped)
{
y = rect.origin.y;
y = rect.origin.y + rect.size.height - bms.height;
}
[[GSTheme theme] fillHorizontalRect:
NSMakeRect (rect.origin.x + bls.width, y,