Posted: 19th Jun 2021 9:10
Hey, guys. I've jotted down the code here.
+ Code Snippet
// Project: setmaxdisplaymod 
// Created: 2021-06-15

// show all errors
SetErrorMode(2)

// set window properties
SetWindowTitle( "setmaxdisplaymod" )
a=GetMaxDeviceWidth()
b=GetMaxDeviceHeight()
SetWindowSize( a, b, 1 )
SetWindowAllowResize( 1 ) // allow the user to resize the window

// set display properties
SetVirtualResolution( a, b ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts



do
    ix= GetDeviceWidth()
    iy= GetDeviceHeight()

    print("X: "+str(ix))
    print("Y: "+str(iy))

    Print( ScreenFPS() )
    Sync()
loop
Posted: 19th Jun 2021 13:11
+ Code Snippet
// Project: setmaxdisplaymod 
// Created: 2021-06-15
 
// show all errors
SetErrorMode(2)
 
// set window properties
SetWindowTitle( "setmaxdisplaymod" )
a=GetMaxDeviceWidth()
b=GetMaxDeviceHeight()
SetWindowSize( a, b, 1 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
 
// set display properties
SetVirtualResolution( a, b ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
 
 
 
do
    ix= GetMaxDeviceWidth()
    iy= GetMaxDeviceHeight()
 
    print("X: "+str(ix))
    print("Y: "+str(iy))
 
    Print( ScreenFPS() )
    Sync()
loop
Posted: 19th Jun 2021 22:23
SetImmersiveMode(1)