Originally Posted By: mercuryus

You make the engine window the same size like the monitor size (ignoring the aspects) because you set the size BEFORE getting the aspect ratio.
Afterwards screen_size.y of cause is equal desktopHeight.


Oh I see... so your solution is like this?

var gv_scr_width;
var gv_scr_height;

// before resolution change
gv_scr_width=sys_metrics(0);
gv_scr_height=sys_metrics(1);

// set aspect
camera.aspect=(screen_size.y/screen_size.x)/(gv_scr_height/gv_scr_width);

// change the resolution here