Getting device resolution on Android
Thread #614255. Printed from Allegro.cc
I'm implementing an Android version of my game Blastonaut and i've run into an issue:
DeviceScreenWidth/Height are both zeros on Android.
If i set them manually, the program works fine.
The same code works flawlessly on Windows and iOS.
Heres the code:
P.S. I'm testing on a Galaxy S4.