1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-26 02:14:22 +00:00

ScaledImage: Use in a few more places

This commit is contained in:
reuk 2021-11-25 18:14:31 +00:00
parent 34fdea0708
commit 03428561ed
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
10 changed files with 42 additions and 28 deletions

View file

@ -36,7 +36,7 @@ struct StatusItemContainer : public Timer
{
//==============================================================================
StatusItemContainer (SystemTrayIconComponent& iconComp, const Image& im)
: owner (iconComp), statusIcon (imageToNSImage (im))
: owner (iconComp), statusIcon (imageToNSImage (ScaledImage (im)))
{
}
@ -51,7 +51,7 @@ struct StatusItemContainer : public Timer
void updateIcon (const Image& newImage)
{
statusIcon.reset (imageToNSImage (newImage));
statusIcon.reset (imageToNSImage (ScaledImage (newImage)));
setIconSize();
configureIcon();
}