mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Draw elements.
This commit is contained in:
parent
ecc9791ecf
commit
aa9344c78b
1 changed files with 4 additions and 3 deletions
|
@ -886,16 +886,17 @@
|
|||
// make smaller so that it does not touch frame
|
||||
NSBezierPath *oval;
|
||||
NSRect rect = NSZeroRect;
|
||||
CGFloat w = frame.size.width / 2;
|
||||
|
||||
[backgroundColor set];
|
||||
if(value == NSControlStateValueOff)
|
||||
{
|
||||
CGFloat w = frame.size.width / 2;
|
||||
rect = NSMakeRect(frame.origin.x, frame.origin.y, frame.size.height, w);
|
||||
rect = NSMakeRect(frame.origin.x + 4, frame.origin.y + 2, w, frame.size.height - 4);
|
||||
}
|
||||
else
|
||||
{
|
||||
rect = NSMakeRect(0,0,frame.size.height,frame.size.height);
|
||||
rect = NSMakeRect(frame.origin.x + frame.size.width/2, frame.origin.y + 2,
|
||||
w, frame.size.height - 4);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue