Changeset 601


Ignore:
Timestamp:
Jul 16, 2006, 5:01:14 AM (16 years ago)
Author:
livings124
Message:

Variables are a bit more relevant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BarButton.m

    r600 r601  
    4646                * mainOver = [NSImage imageNamed: @"FilterButtonOverMain.png"];
    4747       
    48         float endWidth = [leftOver size].width,
    49                 mainWidth = buttonSize.width - 2.0 * endWidth;
     48        NSSize endSize = [leftOver size],
     49                mainSize = NSMakeSize(buttonSize.width - endSize.width * 2.0, endSize.height);
    5050        NSPoint leftPoint = NSMakePoint(0, 0),
    51                 mainPoint = NSMakePoint(endWidth, 0),
    52                 rightPoint = NSMakePoint(mainWidth + endWidth, 0);
    53         NSSize mainSize = NSMakeSize(mainWidth, [leftOver size].height);
     51                mainPoint = NSMakePoint(endSize.width, 0),
     52                rightPoint = NSMakePoint(buttonSize.width - endSize.width, 0);
    5453
    5554        [mainOver setScalesWhenResized: YES];
Note: See TracChangeset for help on using the changeset viewer.