mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 01:38:13 +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:
@@ -4,6 +4,7 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
import org.robovm.apple.foundation.NSAutoreleasePool;
|
||||
import org.robovm.apple.uikit.UIApplication;
|
||||
import org.robovm.apple.uikit.UIPasteboard;
|
||||
@@ -114,5 +115,10 @@ public class Main extends IOSApplication.Delegate {
|
||||
public void convertToJPEG(InputStream input, OutputStream output) throws IOException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Pair<Integer, Integer> getRealScreenSize(boolean real) {
|
||||
return Pair.of(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user