Code archives/Graphics/SetRes( )

This code has been declared by its author to be Public Domain code.

Download source code

SetRes( ) by thelizardking2006
UPDATED

Sets the graphics mode to the current desktop resolution!
BlitzPlus (and modifiable BlitzMax) only.

Yeah, i know its a crappie piece of code, but maybe it'll help some newbie ;) . lol whatever.
SetRes()

While Not KeyHit(1)
	Text 0,0,"OK, graphic mode has been set!"
	Text 0,12, GraphicsWidth()+"x"+GraphicsHeight()
	Flip
Wend

Function SetRes();This function is for BlitzPlus ONLY - it sets the graphics mode to the current resolution

graphics gadgetwidth(desktop()),gadgetheight(desktop());get the width and height of the desktop - the current screen

End Function

Comments

None.

Code Archives Forum