mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
move mouse cursor in the center of the screen on start. Closes #1441
This commit is contained in:
parent
34a1b4da55
commit
7ebcb77072
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue