Skip to content

Commit

Permalink
(gfx/video_driver.c) Simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Nov 21, 2016
1 parent 6c3a5fe commit b93c759
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions gfx/video_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1570,17 +1570,13 @@ void video_driver_set_aspect_ratio(void)

void video_driver_show_mouse(void)
{
if (!video_driver_poke)
return;
if (video_driver_poke->show_mouse)
if (video_driver_poke && video_driver_poke->show_mouse)
video_driver_poke->show_mouse(video_driver_data, true);
}

void video_driver_hide_mouse(void)
{
if (!video_driver_poke)
return;
if (video_driver_poke->show_mouse)
if (video_driver_poke && video_driver_poke->show_mouse)
video_driver_poke->show_mouse(video_driver_data, false);
}

Expand Down

0 comments on commit b93c759

Please sign in to comment.