mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
get realScreen size for android
- to check if the app renders different resolution and update the tooltips size
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user