//DesktopDepth and DesktopResolution IVideoModeList* tmp_vList; IrrlichtDevice* tmp_dvc; dimension2d DesktopResolution; dimension2d getDesktopRes() { tmp_dvc = createDevice(EDT_DIRECT3D9,dimension2d(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; }