So... more testing.. if I do not set any windowsize, virtualsize or aspectratio it defaults to aspectratio... Im not sure how setaspectratio breaks it... but it does.
The bad thing is on the iPhone if I start the app with the phone in the typical portrait mode orientation it does not default to landscape despite my code SetOrientationAllowed ( 0, 0, 1, 1 ). Andriod works. Is that a broadcast bug, or will this also occur if I send my app to the iStore?
But the setwindowsize will still not accept getdevicewidth and getdeviceheight on Windows.
This also will not work.
w# = GetDeviceWidth()
h# = GetDeviceHeight()
SetWindowSize( w#, h#, 0 )
SetVirtualResolution(GetDeviceWidth(), GetDeviceHeight())
This does not work:
SetWindowSize( GetDeviceWidth(), GetDeviceHeight(), 0 )
SetVirtualResolution(GetDeviceWidth(), GetDeviceHeight())
This does work:
SetWindowSize( 1366, 768, 0 ) // but no way to know what monitor the user is using why????????????????
SetVirtualResolution(GetDeviceWidth(), GetDeviceHeight())
The virtual resolution is correct. The window size will not change!!!!!!!!!!!!!!!!!!!!!!
Why in the world can I not set my window screen based off my monitor? It literally has no effect unless I use actual integer numbers and not variables.