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:
Mitchell Livingston 2006-10-04 20:07:36 +00:00
parent 46d69d2d41
commit 1155c20553
2 changed files with 4 additions and 3 deletions

View File

@ -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];
}

View File

@ -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