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

@@ -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());
}
}
}