mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Merge branch 'master' into 'master'
[Mobile] Keep FScreen array from growing See merge request core-developers/forge!3806
This commit is contained in:
@@ -450,6 +450,21 @@ public class Forge implements ApplicationListener {
|
||||
currentScreen = screen0;
|
||||
currentScreen.setSize(screenWidth, screenHeight);
|
||||
currentScreen.onActivate();
|
||||
//keep Dscreens growing
|
||||
if (Dscreens.size() > 3) {
|
||||
for(int x = Dscreens.size(); x > 3; x--) {
|
||||
Dscreens.removeLast();
|
||||
}
|
||||
}
|
||||
/* for checking only
|
||||
if (!Dscreens.isEmpty()) {
|
||||
int x = 0;
|
||||
for(FScreen fScreen : Dscreens) {
|
||||
System.out.println("Screen ["+x+"]: "+fScreen.toString());
|
||||
x++;
|
||||
}
|
||||
System.out.println("---------------");
|
||||
}*/
|
||||
}
|
||||
catch (Exception ex) {
|
||||
graphics.end();
|
||||
|
||||
Reference in New Issue
Block a user