mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
a49d3efb05
commit
83a8dccb97
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue