mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Prevent flickering when multiple dialogs appear in quick succession
This commit is contained in:
@@ -81,7 +81,7 @@ public class ImageCache {
|
||||
* and cannot be loaded from disk. pass -1 for width and/or height to avoid resizing in that dimension.
|
||||
*/
|
||||
public static BufferedImage getImage(final CardView card, final int width, final int height) {
|
||||
final String key = card.getOriginal().getImageKey();
|
||||
final String key = card.getOriginal().getImageKey(false);
|
||||
return scaleImage(key, width, height, true);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ public final class FImageUtil {
|
||||
* For flip cards, returns the un-flipped image.
|
||||
*/
|
||||
public static BufferedImage getImage(final CardStateView card) {
|
||||
BufferedImage image = ImageCache.getOriginalImage(card.getImageKey(), true);
|
||||
BufferedImage image = ImageCache.getOriginalImage(card.getImageKey(false), true);
|
||||
final int foilIndex = card.getFoilIndex();
|
||||
if (image != null && foilIndex > 0) {
|
||||
image = getImageWithFoilEffect(image, foilIndex);
|
||||
|
||||
Reference in New Issue
Block a user