Changeset 10413


Ignore:
Timestamp:
Mar 21, 2010, 3:16:11 PM (12 years ago)
Author:
livings124
Message:

one more constant, one less warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentCell.m

    r10412 r10413  
    5656#define PADDING_BETWEEN_PROGRESS_AND_BAR 2.0
    5757#define PADDING_BETWEEN_BAR_AND_STATUS 2.0
     58#define PADDING_BETWEEN_BAR_AND_EDGE_MIN 3.0
    5859
    5960#define PIECES_TOTAL_PERCENT 0.6
     
    730731    {
    731732        result.origin.x = NSMinX(bounds) + IMAGE_SIZE_MIN + PADDING_BETWEEN_IMAGE_AND_BAR;
    732         #warning use constant
    733         result.origin.y = NSMinY(bounds) + 3.0;
    734         result.size.height = NSHeight(bounds) - 2.0 * 3.0;
     733        result.origin.y = NSMinY(bounds) + PADDING_BETWEEN_BAR_AND_EDGE_MIN;
     734        result.size.height = NSHeight(bounds) - 2.0 * PADDING_BETWEEN_BAR_AND_EDGE_MIN;
    735735        result.size.width = NSMaxX(bounds) - NSMinX(result) - PADDING_HORIZONTAL;
    736736    }
Note: See TracChangeset for help on using the changeset viewer.