iPhone X Aspect Ratio Correction - is an extension, which will help you solve the problem of innovated aspect ratio in iPhone X and some Android devices.
How to use:
1) Turn off Application Surface:
application_surface_enable(false);
2) Check, if screen is really extended in height:
drawVerticalBar = screen_check_hExtention();
3) Let my script automatically correct your view settings (will return verticalBorderPos, which you will use in Post Draw Event):
verticalBorderPos = screen_aspect_ratio_correction(viewId);
4) Draw black bar in Post Draw Event
if (drawVerticalBar){
draw_set_color(c_black)
draw_rectangle(0,0,view_wport[0]+10,verticalBorderPos,0)
}
In order to understand the principle of work, I advise you to look into the project or ask a question here ;)
End User Licence Agreement (EULA).