mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
disable BaseMultiResolutionImage
This commit is contained in:
@@ -39,7 +39,7 @@ import java.awt.Window;
|
|||||||
import java.awt.event.KeyEvent;
|
import java.awt.event.KeyEvent;
|
||||||
import java.awt.event.MouseAdapter;
|
import java.awt.event.MouseAdapter;
|
||||||
import java.awt.event.MouseEvent;
|
import java.awt.event.MouseEvent;
|
||||||
import java.awt.image.BaseMultiResolutionImage;
|
//import java.awt.image.BaseMultiResolutionImage;
|
||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -690,14 +690,14 @@ public class FSkin {
|
|||||||
|
|
||||||
protected ImageIcon getIcon() {
|
protected ImageIcon getIcon() {
|
||||||
if (this.imageIcon == null) {
|
if (this.imageIcon == null) {
|
||||||
float screenScale = GuiBase.getInterface().getScreenScale();
|
/*float screenScale = GuiBase.getInterface().getScreenScale();
|
||||||
int iconWidth = Math.round(image.getWidth(null) / screenScale);
|
int iconWidth = Math.round(image.getWidth(null) / screenScale);
|
||||||
int iconHeight = Math.round(image.getHeight(null) / screenScale);
|
int iconHeight = Math.round(image.getHeight(null) / screenScale);
|
||||||
Image [] iconImages = new Image[2];
|
Image [] iconImages = new Image[2];
|
||||||
iconImages[0] = image.getScaledInstance(iconWidth, iconHeight, Image.SCALE_SMOOTH);
|
iconImages[0] = image.getScaledInstance(iconWidth, iconHeight, Image.SCALE_SMOOTH);
|
||||||
iconImages[1] = image;
|
iconImages[1] = image;
|
||||||
BaseMultiResolutionImage multiImage = new BaseMultiResolutionImage(iconImages);
|
BaseMultiResolutionImage multiImage = new BaseMultiResolutionImage(iconImages);*/
|
||||||
this.imageIcon = new ImageIcon(multiImage);
|
this.imageIcon = new ImageIcon(this.image/*multiImage*/);
|
||||||
}
|
}
|
||||||
return this.imageIcon;
|
return this.imageIcon;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user