get realScreen size for android

- to check if the app renders different resolution and update the tooltips size
This commit is contained in:
Anthony Calosa
2022-08-01 08:46:47 +08:00
parent 002591fa48
commit 6b1c8d30f4
7 changed files with 89 additions and 53 deletions

View File

@@ -16,6 +16,7 @@ import forge.util.FileUtil;
import forge.util.OperatingSystem;
import forge.util.RestartUtil;
import io.sentry.Sentry;
import org.apache.commons.lang3.tuple.Pair;
import javax.imageio.ImageIO;
import java.awt.*;
@@ -186,5 +187,10 @@ public class Main {
BufferedImage image = ImageIO.read(input);
ImageIO.write(image, "jpg", output);
}
@Override
public Pair<Integer, Integer> getRealScreenSize(boolean real) {
return Pair.of(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
}
}
}