Refactoring code for image drawing

This commit is contained in:
relikd
2019-07-03 14:00:02 +02:00
parent 8e712cae20
commit 29a48384c7
8 changed files with 249 additions and 366 deletions

View File

@@ -228,7 +228,7 @@
} else if (self.icon.icon) {
img = [[NSImage alloc] initWithData:self.icon.icon];
} else {
return [RSSIcon iconWithSize:16]; // TODO: setup imageNamed: for default rss icon?
img = [NSImage imageNamed:RSSImageDefaultRSSIcon];
}
[img setSize:NSMakeSize(16, 16)];
return img;