From b671e909db6766e69ac0213e78f8c25c1f5d0abf Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 16 Jul 2006 05:01:14 +0000 Subject: [PATCH] Variables are a bit more relevant. --- macosx/BarButton.m | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/macosx/BarButton.m b/macosx/BarButton.m index 11d723455..59b912b13 100644 --- a/macosx/BarButton.m +++ b/macosx/BarButton.m @@ -45,12 +45,11 @@ * rightOver = [NSImage imageNamed: @"FilterButtonOverRight.png"], * mainOver = [NSImage imageNamed: @"FilterButtonOverMain.png"]; - float endWidth = [leftOver size].width, - mainWidth = buttonSize.width - 2.0 * endWidth; + NSSize endSize = [leftOver size], + mainSize = NSMakeSize(buttonSize.width - endSize.width * 2.0, endSize.height); NSPoint leftPoint = NSMakePoint(0, 0), - mainPoint = NSMakePoint(endWidth, 0), - rightPoint = NSMakePoint(mainWidth + endWidth, 0); - NSSize mainSize = NSMakeSize(mainWidth, [leftOver size].height); + mainPoint = NSMakePoint(endSize.width, 0), + rightPoint = NSMakePoint(buttonSize.width - endSize.width, 0); [mainOver setScalesWhenResized: YES]; [mainOver setSize: mainSize];