move mouse cursor in the center of the screen on start. Closes #1441

This commit is contained in:
oy 2016-06-13 09:57:57 +02:00
parent 34a1b4da55
commit 7ebcb77072

View file

@ -1481,6 +1481,9 @@ void CMenus::OnInit()
{
UpdateVideoModeSettings();
m_MousePos.x = Graphics()->ScreenWidth()/2;
m_MousePos.y = Graphics()->ScreenHeight()/2;
// load menu images
m_lMenuImages.clear();
Storage()->ListDirectory(IStorage::TYPE_ALL, "ui/menuimages", MenuImageScan, this);