Skip to content

Instantly share code, notes, and snippets.

View rossillingworth's full-sized avatar

Ross Illingworth rossillingworth

View GitHub Profile
@rossillingworth
rossillingworth / gist:05fb77f991c48f25565f
Created December 6, 2014 11:15
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;