X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/75eed909bc98be39cde570a093f1b6bbab38cb92..6d099bbe927a1dc3934c7b6254223961fc849453:/MainController.m diff --git a/MainController.m b/MainController.m index 0bc7085..56f568f 100755 --- a/MainController.m +++ b/MainController.m @@ -812,8 +812,13 @@ static MainController *sharedController; } if ( [df boolForKey:@"showAlbumArtwork"] ) { + NSSize oldSize, newSize; NS_DURING - art = [[self currentRemote] currentSongAlbumArt]; + art = [[self currentRemote] currentSongAlbumArt]; + oldSize = [art size]; + if (oldSize.width > oldSize.height) newSize = NSMakeSize(110,oldSize.height * (110.0f / oldSize.width)); + else newSize = NSMakeSize(oldSize.width * (110.0f / oldSize.height),110); + art = [[[[NSImage alloc] initWithData:[art TIFFRepresentation]] autorelease] imageScaledSmoothlyToSize:newSize]; NS_HANDLER [self networkError:localException]; NS_ENDHANDLER @@ -829,7 +834,7 @@ static MainController *sharedController; time:time track:track rating:rating - image:[[[[NSImage alloc] initWithData:[art TIFFRepresentation]] autorelease] imageScaledSmoothlyToSize:NSMakeSize(110,110)]]; + image:art]; } - (void)showUpcomingSongs