mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 23:30:37 +00:00
* Source/GSWindowDecorationView.m: initialize offsets to prevent
negative value warnings suggested by Doug. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28206 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b9a8ff0a46
commit
6cc478a8ed
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-04-12 15:16-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/GSWindowDecorationView.m: initialize offsets to prevent
|
||||
negative value warnings suggested by Doug.
|
||||
|
||||
2009-04-12 15:11-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSSearchFieldCell.m: Correct issue displaying images for
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
+ (NSRect) contentRectForFrameRect: (NSRect)aRect
|
||||
styleMask: (unsigned int)aStyle
|
||||
{
|
||||
float t, b, l, r;
|
||||
float t = 0.0, b = 0.0, l = 0.0, r = 0.0;
|
||||
|
||||
[self offsets: &l : &r : &t : &b forStyleMask: aStyle];
|
||||
aRect.size.width -= l + r;
|
||||
|
@ -78,7 +78,7 @@
|
|||
+ (NSRect) frameRectForContentRect: (NSRect)aRect
|
||||
styleMask: (unsigned int)aStyle
|
||||
{
|
||||
float t, b, l, r;
|
||||
float t = 0.0, b = 0.0, l = 0.0, r = 0.0;
|
||||
|
||||
[self offsets: &l : &r : &t : &b forStyleMask: aStyle];
|
||||
aRect.size.width += l + r;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue