mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 14:30:38 +00:00
tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29044 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b2bd0b411e
commit
e954a93ff3
4 changed files with 30 additions and 38 deletions
|
@ -732,26 +732,9 @@ withRepeatedImage: (NSImage*)image
|
|||
GSDrawTiles *c = (GSDrawTiles*)NSCopyObject(self, 0, zone);
|
||||
unsigned i;
|
||||
|
||||
c->images[0] = [images[0] copy];
|
||||
for (i = 1; i < 9; i++)
|
||||
for (i = 0; i < 9; i++)
|
||||
{
|
||||
unsigned j;
|
||||
|
||||
for (j = 0; j < i; j++)
|
||||
{
|
||||
if (images[i] == images[j])
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (j < i)
|
||||
{
|
||||
c->images[i] = RETAIN(c->images[j]);
|
||||
}
|
||||
else
|
||||
{
|
||||
c->images[i] = [images[i] copy];
|
||||
}
|
||||
c->images[i] = [images[i] copyWithZone: zone];
|
||||
}
|
||||
c->style = style;
|
||||
return c;
|
||||
|
@ -883,15 +866,10 @@ withRepeatedImage: (NSImage*)image
|
|||
}
|
||||
else
|
||||
{
|
||||
#if !defined(__MINGW32__)
|
||||
/* This code raises an exception on windows (tested 30/10/2009) ... why? */
|
||||
images[i]
|
||||
= [[self extractImageFrom: image withRect: rects[i]] retain];
|
||||
rects[i].origin.x = 0;
|
||||
rects[i].origin.y = 0;
|
||||
#else
|
||||
images[i] = [image retain];
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue