Icon

iPhoneX AspectRatio Correction

Editllise

Contact Publisher

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 answer a question here ;)

End User Licence Agreement (EULA).

Version 1.0.0. Published July 18, 2018

Created with GameMaker: Studio v1.4.1804

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.

No reviews yet

No reviews have been left for this asset - be the first!

Package contents

Loading, please wait

What is the issue?

Back to Top