Icon

iPhoneX AspectRatio Correction

TurtleHolder

You must be logged in to obtain assets

Description

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);   
  • viewId - room view id

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).

Age Rating: 4+

Version

GMS1 - Version 1.0.0. Published July 18, 2018

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait