mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Better fix for card list dancing light issue.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user