mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 00:40:48 +00:00
Declare variable at begin of method to allow compilation with older
compilers. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33493 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2e6758ea70
commit
b1ec69532d
1 changed files with 4 additions and 3 deletions
|
@ -2015,8 +2015,9 @@ static void autoresize(CGFloat oldContainerSize,
|
||||||
|
|
||||||
- (void) resizeWithOldSuperviewSize: (NSSize)oldSize
|
- (void) resizeWithOldSuperviewSize: (NSSize)oldSize
|
||||||
{
|
{
|
||||||
NSSize superViewFrameSize;
|
NSSize superViewFrameSize;
|
||||||
NSRect newFrame = _frame;
|
NSRect newFrame = _frame;
|
||||||
|
NSRect newFrameRounded;
|
||||||
|
|
||||||
if (_autoresizingMask == NSViewNotSizable)
|
if (_autoresizingMask == NSViewNotSizable)
|
||||||
return;
|
return;
|
||||||
|
@ -2053,7 +2054,7 @@ static void autoresize(CGFloat oldContainerSize,
|
||||||
flipped ? (_autoresizingMask & NSViewMinYMargin) : (_autoresizingMask & NSViewMaxYMargin));
|
flipped ? (_autoresizingMask & NSViewMinYMargin) : (_autoresizingMask & NSViewMaxYMargin));
|
||||||
}
|
}
|
||||||
|
|
||||||
NSRect newFrameRounded = newFrame;
|
newFrameRounded = newFrame;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform rounding to pixel-align the frame if we are not rotated
|
* Perform rounding to pixel-align the frame if we are not rotated
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue