Skip to content

Commit

Permalink
set the starting position of the mouse over the first menu entry
Browse files Browse the repository at this point in the history
  • Loading branch information
pionere committed Aug 29, 2024
1 parent 9a41dce commit 18d638b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/diablo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static int diablo_parse_flags(int argc, char** argv)
static void diablo_init_screen()
{
MousePos.x = SCREEN_WIDTH / 2;
MousePos.y = SCREEN_HEIGHT / 2;
MousePos.y = MAINMENU_TOP + MAINMENU_ITEM_HEIGHT / 2;
#if HAS_GAMECTRL || HAS_JOYSTICK || HAS_KBCTRL || HAS_DPAD
if (!sgbControllerActive)
#endif
Expand Down
2 changes: 1 addition & 1 deletion tools/patcher/diablo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static int diablo_parse_flags(int argc, char** argv)
static void diablo_init_screen()
{
MousePos.x = SCREEN_WIDTH / 2;
MousePos.y = SCREEN_HEIGHT / 2;
MousePos.y = MAINMENU_TOP + MAINMENU_ITEM_HEIGHT / 2;
#if HAS_GAMECTRL || HAS_JOYSTICK || HAS_KBCTRL || HAS_DPAD
if (!sgbControllerActive)
#endif
Expand Down

0 comments on commit 18d638b

Please sign in to comment.