Thank you, steffen, for the help. This is exactly what I was asking for, and it works.
Edit: I'm leaving the original reply up (below), but looking at the commit history, I think what happened is that you added the other resolutions right around the time you replied to my message, but I'm using a version of the engine from two days ago.
But now I have another question. For the 4x3 resolutions, the only one I can use is 1024x768, everything else throws a
error: cannot find symbol, such as for example:
symbol: variable RES_1152x864
location: class Ratio4x3
So then I tried enumerating the resolutions:
res = Resolution.Ratio4x3.getAll();
for (Resolution r : res)
The only output from this is
1024x768. However, if I change the above code to:
res = Resolution.Ratio16x9.getAll();
Then I get this list:
litiengine/src/de/gurkenlabs/litiengine/gui/screens/Resolution.java, line 100, I was expecting to be able to use any of the predefined 4x3 resolutions, but I cannot.
I am sorry to be so stupid, but what am I doing wrong? Thank you once again.