Would you post your script using "code" tags?
Sure, this is my resize Script and it is placed in Game Start event
switch(os_type)
{
case os_android:
cur_width = max(1,display_get_width());
cur_height = max(1,display_get_height());
break;
}
switch(os_type)
{
case os_windows:
cur_width = max(1,window_get_width());
cur_height = max(1,window_get_height());
break;
}
var ratio = cur_width/cur_height
if cur_width < cur_height
{
__view_set( e__VW.WView, 0, min_height * ratio )
__view_set( e__VW.HView, 0, min_height )
}
else
{
__view_set( e__VW.WView, 0, min_width )
__view_set( e__VW.HView, 0, min_width / ratio )
}
__view_set( e__VW.WPort, 0, cur_width )
__view_set( e__VW.HPort, 0, cur_height )
surface_resize(application_surface, __view_get( e__VW.WView, 0 ), __view_get( e__VW.HView, 0 ))