====== setDisplayDevice ====== ( string deviceName, int width, int height=NULL, int bpp=NULL, bool fullScreen=NULL, int hz=NULL )Attempt to set the screen mode using as much information as is provided. ===== Syntax ===== bool setDisplayDevice(string %deviceName[, int %width, int %height=NULL, int %bpp=NULL, bool %fullScreen=NULL, int %hz=NULL]); ===== Parameters ===== [[scripting:doc:engine:types:string|string]] **%%%deviceName%%**\\ No description available. [optional] [[scripting:doc:engine:types:int|int]] **%%%width%%**\\ No description available. [optional] [[scripting:doc:engine:types:int|int]] **%%%height=NULL%%**\\ No description available. [optional] [[scripting:doc:engine:types:int|int]] **%%%bpp=NULL%%**\\ No description available. [optional] [[scripting:doc:engine:types:bool|bool]] **%%%fullScreen=NULL%%**\\ No description available. [optional] [[scripting:doc:engine:types:int|int]] **%%%hz=NULL%%**\\ No description available. ===== Return value ===== [[scripting:doc:engine:types:bool|bool]]\\ No description available. ===== Remarks ===== ===== Examples ===== ===== Source ===== Engine ===== See also ===== [[scripting:doc:u:u:getdisplaydevicelist|getDisplayDeviceList]]\\ [[scripting:doc:u:u:getres|getRes]]\\ [[scripting:doc:u:u:getresolutionlist|getResolutionList]]\\ [[scripting:doc:u:u:getvideodriverinfo|getVideoDriverInfo]]\\ [[scripting:doc:u:u:isdevicefullscreenonly|isDeviceFullScreenOnly]]\\ [[scripting:doc:u:u:isfullscreen|isFullScreen]]\\ [[scripting:doc:u:u:nextresolution|nextResolution]]\\ [[scripting:doc:u:u:prevresolution|prevResolution]]\\ [[scripting:doc:u:u:setres|setRes]]\\ [[scripting:doc:u:u:setscreenmode|setScreenMode]]\\ [[scripting:doc:u:u:setverticalsync|setVerticalSync]]\\ [[scripting:doc:u:u:switchbitdepth|switchBitDepth]]\\ [[scripting:doc:u:u:togglefullscreen|toggleFullScreen]]\\ [[scripting:doc:u:u:videosetgammacorrection|videoSetGammaCorrection]]\\ ===== References ===== [[scripting:doc:u:optionsdlg:applygraphics|optionsDlg::applyGraphics]]: base/client/scripts/allClientScripts.cs:4133\\ [[scripting:doc:u:optionsdlg:applygraphics|optionsDlg::applyGraphics]]: base/client/scripts/allClientScripts.cs:4135\\