mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-08 12:51:51 +09:00
new properties in apploader: aspectRatio
This commit is contained in:
@@ -243,6 +243,7 @@ public class AppLoader implements ApplicationListener {
|
||||
public static int halfScreenH = 0;
|
||||
public static float halfScreenWf = 0f;
|
||||
public static float halfScreenHf = 0f;
|
||||
public static float aspectRatio = 0f;
|
||||
|
||||
public static Texture textureWhiteSquare;
|
||||
public static Texture textureWhiteCircle;
|
||||
@@ -680,6 +681,8 @@ public class AppLoader implements ApplicationListener {
|
||||
halfScreenWf = (float) halfScreenW;
|
||||
halfScreenHf = (float) halfScreenH;
|
||||
|
||||
aspectRatio = screenWf / screenHf;
|
||||
|
||||
updateFullscreenQuad(screenW, screenH);
|
||||
|
||||
printdbg(this, "Resize end");
|
||||
|
||||
Reference in New Issue
Block a user