mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Faster scrolling at the cost of a bit less detailed advanced bar (if you want more details, use the info window ;))
This commit is contained in:
@@ -142,8 +142,9 @@
|
||||
else
|
||||
fAcross = MAX_ACROSS;
|
||||
|
||||
fWidth = ([fImageView bounds].size.width - (fAcross + 1) * BETWEEN) / fAcross;
|
||||
fExtraBorder = ([fImageView bounds].size.width - ((fWidth + BETWEEN) * fAcross + BETWEEN)) / 2;
|
||||
float width = [fImageView bounds].size.width;
|
||||
fWidth = (width - (fAcross + 1) * BETWEEN) / fAcross;
|
||||
fExtraBorder = (width - ((fWidth + BETWEEN) * fAcross + BETWEEN)) / 2;
|
||||
|
||||
[self updateView: YES];
|
||||
}
|
||||
|
||||
@@ -827,7 +827,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||
|
||||
- (NSImage *) advancedBar
|
||||
{
|
||||
int width = 324; //integers for bars
|
||||
int width = 225; //amount of pixels/"pieces"
|
||||
|
||||
NSBitmapImageRep * bitmap = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes: nil
|
||||
pixelsWide: width pixelsHigh: BAR_HEIGHT bitsPerSample: 8 samplesPerPixel: 4 hasAlpha: YES
|
||||
|
||||
Reference in New Issue
Block a user