Skip to content

Commit

Permalink
Fix comment2
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed May 14, 2024
1 parent 1fa7d72 commit a963b05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/qz/ui/component/IconCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,11 @@ private void buildIconCache() {
// Stash scaled 2x, 3x versions if missing
int maxScale = 3;
for(Icon i : Icon.values()) {
// Assume single-resource icons are lonely and want scaled instances
if (i.fileNames.length != 1) {
continue;
}
for(int scale = 2; scale <= maxScale; scale++) {
// Assume single-resource icons are lonely and want scaled instances

BufferedImage bi = images.get(i.getId());
// Assume square icon (filename is derived from width only)
String id = i.getId();
Expand Down

0 comments on commit a963b05

Please sign in to comment.