Better fix for card list dancing light issue.

This commit is contained in:
Alumi
2022-04-20 17:49:51 +09:00
parent ff0ca643eb
commit f0762b3bdc

View File

@@ -1170,12 +1170,12 @@ public class ImageView<T extends InventoryItem> extends ItemView<T> {
final int drawY = bounds.y + borderSize;
final int drawWidth = bounds.width - 2 * borderSize;
final int drawHeight = bounds.height - 2 * borderSize;
final int imageWidth = Math.round(drawWidth * screenScale)-1;
final int imageHeight = Math.round(drawHeight * screenScale)-1;
final int imageWidth = Math.round(drawWidth * screenScale);
final int imageHeight = Math.round(drawHeight * screenScale);
BufferedImage img = ImageCache.getImage(item, imageWidth, imageHeight, itemInfo.alt);
if (img != null) {
g.drawImage(img, drawX, drawY, drawX + drawWidth, drawY + drawHeight, 0, 0, imageWidth, imageHeight, null);
g.drawImage(img, drawX, drawY, drawWidth, drawHeight, null);
}
else {
if (deckSelectMode) {