Skip to content

Instantly share code, notes, and snippets.

@rossillingworth
Created December 6, 2014 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rossillingworth/05fb77f991c48f25565f to your computer and use it in GitHub Desktop.
Save rossillingworth/05fb77f991c48f25565f to your computer and use it in GitHub Desktop.
GML - modify screen size for multiple devices
if ( (view_wport != browser_width) || (view_hport != browser_height) )
{
view_xview[0] = 0;
view_yview[0] = 0;
view_wview[0] = browser_width
view_hview[0] = browser_height
view_xport[0] = 0;
view_yport[0] = 0;
view_wport[0] = browser_width
view_hport[0] = browser_height}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment