Skip to content

Commit

Permalink
SDL: Make non-Mac fullscreen cursor visible
Browse files Browse the repository at this point in the history
Issue: cebix/macemu#26

On non-Mac platforms, driver_fullscreen constructor sets up software cursor,
but switch_to_current_mode() ask for a hardware cursor, possibly due to a typo.
Neither one ends up being drawn, so the cursor goes invisible.

This change makes them agree to use a software cursor. We should eventually
move to just one place deciding which cursor to use, so they don't have to be
kept in sync.
  • Loading branch information
vasi committed Apr 22, 2013
1 parent 4f7de69 commit 8999121
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BasiliskII/src/SDL/video_sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1537,13 +1537,13 @@ void SDL_monitor_desc::switch_to_current_mode(void)
#ifdef SHEEPSHAVER
bool video_can_change_cursor(void)
{
if (display_type != DISPLAY_WINDOW)
return false;

#if defined(__APPLE__)
static char driver[] = "Quartz?";
static int quartzok = -1;

if (display_type != DISPLAY_WINDOW)
return false;

if (quartzok < 0) {
if (SDL_VideoDriverName(driver, sizeof driver) == NULL || strncmp(driver, "Quartz", sizeof driver))
quartzok = true;
Expand Down

0 comments on commit 8999121

Please sign in to comment.