Variables are a bit more relevant.
This commit is contained in:
parent
826c8fd6c9
commit
b671e909db
|
@ -45,12 +45,11 @@
|
||||||
* rightOver = [NSImage imageNamed: @"FilterButtonOverRight.png"],
|
* rightOver = [NSImage imageNamed: @"FilterButtonOverRight.png"],
|
||||||
* mainOver = [NSImage imageNamed: @"FilterButtonOverMain.png"];
|
* mainOver = [NSImage imageNamed: @"FilterButtonOverMain.png"];
|
||||||
|
|
||||||
float endWidth = [leftOver size].width,
|
NSSize endSize = [leftOver size],
|
||||||
mainWidth = buttonSize.width - 2.0 * endWidth;
|
mainSize = NSMakeSize(buttonSize.width - endSize.width * 2.0, endSize.height);
|
||||||
NSPoint leftPoint = NSMakePoint(0, 0),
|
NSPoint leftPoint = NSMakePoint(0, 0),
|
||||||
mainPoint = NSMakePoint(endWidth, 0),
|
mainPoint = NSMakePoint(endSize.width, 0),
|
||||||
rightPoint = NSMakePoint(mainWidth + endWidth, 0);
|
rightPoint = NSMakePoint(buttonSize.width - endSize.width, 0);
|
||||||
NSSize mainSize = NSMakeSize(mainWidth, [leftOver size].height);
|
|
||||||
|
|
||||||
[mainOver setScalesWhenResized: YES];
|
[mainOver setScalesWhenResized: YES];
|
||||||
[mainOver setSize: mainSize];
|
[mainOver setSize: mainSize];
|
||||||
|
|
Loading…
Reference in New Issue