mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:00:48 +00:00
Source/NSTableHeaderCell.m: all variable declarations at the blocks' starts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12522 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
61ca390121
commit
be44d27d7f
1 changed files with 9 additions and 6 deletions
|
@ -60,8 +60,6 @@ static NSColor *clearCol = nil;
|
||||||
|
|
||||||
if (_cell.is_highlighted == YES)
|
if (_cell.is_highlighted == YES)
|
||||||
{
|
{
|
||||||
NSLog(@"highlighting");
|
|
||||||
[controlView lockFocus];
|
|
||||||
NSRectEdge up_sides[] = {NSMaxXEdge, NSMinYEdge,
|
NSRectEdge up_sides[] = {NSMaxXEdge, NSMinYEdge,
|
||||||
NSMinXEdge, NSMaxYEdge};
|
NSMinXEdge, NSMaxYEdge};
|
||||||
NSRectEdge down_sides[] = {NSMaxXEdge, NSMaxYEdge,
|
NSRectEdge down_sides[] = {NSMaxXEdge, NSMaxYEdge,
|
||||||
|
@ -69,8 +67,11 @@ static NSColor *clearCol = nil;
|
||||||
float grays[] = {NSBlack, NSBlack,
|
float grays[] = {NSBlack, NSBlack,
|
||||||
NSWhite, NSWhite};
|
NSWhite, NSWhite};
|
||||||
NSRect rect;
|
NSRect rect;
|
||||||
NSGraphicsContext *ctxt = GSCurrentContext();
|
NSGraphicsContext *ctxt;
|
||||||
|
|
||||||
|
[controlView lockFocus];
|
||||||
|
ctxt = GSCurrentContext();
|
||||||
|
|
||||||
if (GSWViewIsFlipped(ctxt) == YES)
|
if (GSWViewIsFlipped(ctxt) == YES)
|
||||||
{
|
{
|
||||||
rect = NSDrawTiledRects(cellFrame, NSZeroRect,
|
rect = NSDrawTiledRects(cellFrame, NSZeroRect,
|
||||||
|
@ -89,7 +90,6 @@ static NSColor *clearCol = nil;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
[controlView lockFocus];
|
|
||||||
NSRectEdge up_sides[] = {NSMaxXEdge, NSMinYEdge,
|
NSRectEdge up_sides[] = {NSMaxXEdge, NSMinYEdge,
|
||||||
NSMinXEdge, NSMaxYEdge};
|
NSMinXEdge, NSMaxYEdge};
|
||||||
NSRectEdge down_sides[] = {NSMaxXEdge, NSMaxYEdge,
|
NSRectEdge down_sides[] = {NSMaxXEdge, NSMaxYEdge,
|
||||||
|
@ -97,8 +97,11 @@ static NSColor *clearCol = nil;
|
||||||
float grays[] = {NSBlack, NSBlack,
|
float grays[] = {NSBlack, NSBlack,
|
||||||
NSLightGray, NSLightGray};
|
NSLightGray, NSLightGray};
|
||||||
NSRect rect;
|
NSRect rect;
|
||||||
NSGraphicsContext *ctxt = GSCurrentContext();
|
NSGraphicsContext *ctxt;
|
||||||
|
|
||||||
|
[controlView lockFocus];
|
||||||
|
ctxt = GSCurrentContext();
|
||||||
|
|
||||||
if (GSWViewIsFlipped(ctxt) == YES)
|
if (GSWViewIsFlipped(ctxt) == YES)
|
||||||
{
|
{
|
||||||
rect = NSDrawTiledRects(cellFrame, NSZeroRect,
|
rect = NSDrawTiledRects(cellFrame, NSZeroRect,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue