#2, by afrlmeWednesday, 20. January 2016, 12:32 9 years ago
It's actually better to store this value inside of the config dot ini file - well if your plan is to have it automatically launch at the same size as it was when the game was last exited.
There was a function for returning the current surface resolution... I'm not seeing it in the wiki for some reason & I can't remember it off the top of my head. Sorry.
#6, by afrlmeWednesday, 20. January 2016, 17:17 9 years ago
I think the function was something along the lines of...
getProperty("resolution").width -- width (might be .x instead of .width)
getProperty("resolution").height -- height (might be .y instead of .height)
I believe it was something along the lines of what I've added to the code block above. I don't however remember if it was .x/y or .width/height to return the values.
#9, by afrlmeMonday, 25. January 2016, 15:28 9 years ago
Yeah according to the wiki, but it did exist - not sure it was ever added to the wiki, but there was a property field for resolution, as I vaguely remember testing it.