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:
parent
46d69d2d41
commit
1155c20553
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue