Changeset 917
- Timestamp:
- Sep 25, 2006, 3:53:39 AM (16 years ago)
- Location:
- branches/nat-traversal
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/nat-traversal/PiecesWindowController.h
r915 r917 18 18 19 19 Torrent * fTorrent; 20 int fNumPieces, fAcross; 21 float fWidth; 20 int fNumPieces, fAcross, fWidth, fExtraBorder; 22 21 23 22 IBOutlet NSImageView * fImageView; -
branches/nat-traversal/PiecesWindowController.m
r916 r917 9 9 #import "PiecesWindowController.h" 10 10 11 #define MAX_ACROSS 1811 #define MAX_ACROSS 20 12 12 #define BETWEEN 1.0 13 13 … … 107 107 fAcross = MAX_ACROSS; 108 108 109 fWidth = ([fExistingImage size].width - (float)(fAcross + 1) * BETWEEN) / (float)fAcross; 109 fWidth = ([fExistingImage size].width - (fAcross + 1) * BETWEEN) / fAcross; 110 fExtraBorder = ([fExistingImage size].width - ((fWidth + BETWEEN) * fAcross + BETWEEN)) / 2; 110 111 111 112 [self updateView: YES]; … … 193 194 } 194 195 195 point = NSMakePoint( (float)j * (fWidth + BETWEEN) + BETWEEN,196 (float)(fAcross - i) * (fWidth + BETWEEN) - fWidth);196 point = NSMakePoint(j * (fWidth + BETWEEN) + BETWEEN + fExtraBorder, 197 [fExistingImage size].width - (i + 1) * (fWidth + BETWEEN) - fExtraBorder); 197 198 198 199 [pieceImage compositeToPoint: point fromRect: rect operation: NSCompositeSourceOver]; -
branches/nat-traversal/Transmission.xcodeproj/project.pbxproj
r903 r917 324 324 4DCCBB3C09C3D71100D3CABF /* TorrentCell.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = TorrentCell.m; path = macosx/TorrentCell.m; sourceTree = "<group>"; }; 325 325 4DCCBB3D09C3D71100D3CABF /* TorrentCell.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = TorrentCell.h; path = macosx/TorrentCell.h; sourceTree = "<group>"; }; 326 4DDBB71909E16BAE00284745 /* transmissioncli */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = transmissioncli; sourceTree = BUILT_PRODUCTS_DIR; };326 4DDBB71909E16BAE00284745 /* transmissioncli */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "compiled.mach-o.executable"; path = transmissioncli; sourceTree = BUILT_PRODUCTS_DIR; }; 327 327 4DDBB71B09E16BF100284745 /* transmissioncli.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = transmissioncli.c; path = cli/transmissioncli.c; sourceTree = "<group>"; }; 328 328 4DDFDD20099A5D8E00189D81 /* DownloadBadge.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = DownloadBadge.png; path = macosx/Images/DownloadBadge.png; sourceTree = "<group>"; }; -
branches/nat-traversal/macosx/English.lproj/PiecesWindow.nib/info.nib
r904 r917 8 8 <string>446.1</string> 9 9 <key>IBLockedObjects</key> 10 <array> 11 <integer>5</integer> 12 </array> 10 <array/> 13 11 <key>IBOpenObjects</key> 14 12 <array>
Note: See TracChangeset
for help on using the changeset viewer.