Skip to content

Commit b025783

Browse files
committed
Reset mouse cursor to default when the console is closed
The console left its I-beam/hand cursor active in the menus
1 parent 45803fd commit b025783

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Quake/console.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ void Con_UpdateMouseState (void)
683683
Con_SetHotLink (NULL);
684684
Con_SetMouseState (CMS_NOTPRESSED);
685685
Con_ClearSelection ();
686+
VID_SetMouseCursor (MOUSECURSOR_DEFAULT);
686687
return;
687688
}
688689

Quake/gl_vidsdl.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4250,6 +4250,12 @@ static void VID_DestroyCursors (void)
42504250

42514251
void VID_SetMouseCursor (mousecursor_t cursor)
42524252
{
4253+
static mousecursor_t current_cursor = MOUSECURSOR_DEFAULT;
4254+
4255+
if (cursor == current_cursor)
4256+
return;
4257+
current_cursor = cursor;
4258+
42534259
switch (cursor)
42544260
{
42554261
case MOUSECURSOR_HAND:

0 commit comments

Comments
 (0)