rendered paste body //DesktopDepth and DesktopResolution
IVideoModeList* tmp_vList;
IrrlichtDevice* tmp_dvc;
dimension2d<int> DesktopResolution;
dimension2d<int> getDesktopRes()
{
tmp_dvc = createDevice(EDT_DIRECT3D9,dimension2d<s32>(400,100),32,false,true,true,this);
tmp_vList = tmp_dvc->getVideoModeList();
DesktopResolution = (tmp_vList->getDesktopResolution());
return DesktopResolution;
}
s32 DesktopDepth;
s32 getDesktopDepth()
{
DesktopDepth = (tmp_vList->getDesktopDepth());
tmp_dvc->closeDevice();
tmp_dvc->drop();
return DesktopDepth;
}