// Handles GUI Rendering
// Worthless Bums 2012.


// Sets window size, bit depth, windowed mode (in OpenGL mode). D3D mode has resolution (aspect ratio) limitations!
// setDisplayDevice(OpenGL, 2024, 768, 32, false);

// Test function for OpenGL screen resolution.
function trh (%width, %height)
{//echo("trh()");
	// Set display device parameters.
	setDisplayDevice(OpenGL, %width, %height, 32, false);
	
	// Set internal window parameters.
	$Game::Resolution = %width SPC %height;
}