mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Changed variable name.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@25849 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e3a196346f
commit
29b9223701
2 changed files with 19 additions and 15 deletions
|
@ -1,3 +1,7 @@
|
|||
2008-01-03 19:40-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormViewKnobs.m: drkgrey changed to fgcolor.
|
||||
|
||||
2008-01-03 17:22-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormViewKnobs.m: Draw initial knobs as red
|
||||
|
|
|
@ -36,9 +36,9 @@ static int KNOB_HEIGHT = 0.0;
|
|||
static NSRect *blackRectList = NULL;
|
||||
static int blackRectSize = 0;
|
||||
static int blackRectCount = 0;
|
||||
static NSRect *dkgrayRectList = NULL;
|
||||
static int dkgrayRectSize = 0;
|
||||
static int dkgrayRectCount = 0;
|
||||
static NSRect *fgcolorRectList= NULL;
|
||||
static int fgcolorRectSize = 0;
|
||||
static int fgcolorRectCount= 0;
|
||||
|
||||
static void _fastKnobFill(NSRect aRect,BOOL isBlack);
|
||||
static void _drawKnobsForRect(NSRect aRect,BOOL isBlack);
|
||||
|
@ -74,13 +74,13 @@ GormShowFastKnobFills(void)
|
|||
PSsetgray(NSBlack);
|
||||
NSRectFillList(blackRectList, blackRectCount);
|
||||
}
|
||||
if (dkgrayRectCount)
|
||||
if (fgcolorRectCount)
|
||||
{
|
||||
PSsetrgbcolor(1,0,0);
|
||||
NSRectFillList(dkgrayRectList, dkgrayRectCount);
|
||||
NSRectFillList(fgcolorRectList, fgcolorRectCount);
|
||||
}
|
||||
blackRectCount = 0;
|
||||
dkgrayRectCount = 0;
|
||||
fgcolorRectCount = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -368,22 +368,22 @@ _fastKnobFill(NSRect aRect, BOOL isBlack)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (!dkgrayRectList)
|
||||
if (!fgcolorRectList)
|
||||
{
|
||||
dkgrayRectSize = 16;
|
||||
dkgrayRectList = NSZoneMalloc(NSDefaultMallocZone(),
|
||||
dkgrayRectSize * sizeof(NSRect));
|
||||
fgcolorRectSize = 16;
|
||||
fgcolorRectList = NSZoneMalloc(NSDefaultMallocZone(),
|
||||
fgcolorRectSize * sizeof(NSRect));
|
||||
}
|
||||
else
|
||||
{
|
||||
while (dkgrayRectCount >= dkgrayRectSize)
|
||||
while (fgcolorRectCount >= fgcolorRectSize)
|
||||
{
|
||||
dkgrayRectSize <<= 1;
|
||||
fgcolorRectSize <<= 1;
|
||||
}
|
||||
dkgrayRectList = NSZoneRealloc(NSDefaultMallocZone(), dkgrayRectList,
|
||||
dkgrayRectSize * sizeof(NSRect));
|
||||
fgcolorRectList = NSZoneRealloc(NSDefaultMallocZone(), fgcolorRectList,
|
||||
fgcolorRectSize * sizeof(NSRect));
|
||||
}
|
||||
dkgrayRectList[dkgrayRectCount++] = aRect;
|
||||
fgcolorRectList[fgcolorRectCount++] = aRect;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue