You have two commands at the beginning of the code:
SetWindowSize( width, height, fullscreen )
SetVirtualResolution( iWidth, iHeight )
From what I understand, SetWindowSize only is concerned with desktop/laptop computers (PC/Mac) that can display windows and this command works with fullscreen=0 (OFF) and sets the size of the window to display the application. When fullscreen=1 (ON) setting the window size will not have any effect on the fullscreen mode display.
SetVirtualResolution sets the actual resolution to display, however you could set it to in pixels 1920 x 10 and still see more or less half of the height of the screen. If you was to set it to 1920 x 10000, then you would see 10000 height.
To change the resolution use SetVirtualResolution() command.
????????