forked from External/mage
Removed a couple of duplicate files.
This commit is contained in:
parent
8ec8be115c
commit
e8426e6e71
13 changed files with 171 additions and 618 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package mage.client.util.gui;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.Graphics2D;
|
||||
import java.awt.Image;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.awt.image.ImageObserver;
|
||||
|
||||
|
|
@ -38,6 +39,7 @@ public class BufferedImageBuilder {
|
|||
private void waitForImage(BufferedImage bufferedImage) {
|
||||
final ImageLoadStatus imageLoadStatus = new ImageLoadStatus();
|
||||
bufferedImage.getHeight(new ImageObserver() {
|
||||
@Override
|
||||
public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {
|
||||
if (infoflags == ALLBITS) {
|
||||
imageLoadStatus.heightDone = true;
|
||||
|
|
@ -47,6 +49,7 @@ public class BufferedImageBuilder {
|
|||
}
|
||||
});
|
||||
bufferedImage.getWidth(new ImageObserver() {
|
||||
@Override
|
||||
public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {
|
||||
if (infoflags == ALLBITS) {
|
||||
imageLoadStatus.widthDone = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue