mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +00:00
minor fix for menu icon scaling (thanks @OlgaTPark again)
This commit is contained in:
parent
53381bf934
commit
1d72924e69
@ -461,6 +461,12 @@ nsMenuItemIconX::OnFrameComplete(imgIRequest* aRequest)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// Fixes issues with scaling the menu icon on 10.4 and 10.5.
|
||||
// According to Apple's doc, this is deprecated and unneeded in 10.6+.
|
||||
// See OlgaTPark/tenfourfox #14.
|
||||
if (!nsCocoaFeatures::OnSnowLeopardOrLater())
|
||||
[newImage setScalesWhenResized:YES];
|
||||
|
||||
[newImage setSize:NSMakeSize(kIconWidth, kIconHeight)];
|
||||
[mNativeMenuItem setImage:newImage];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user