(gfx/video_driver.c) Simplifications

This commit is contained in:
twinaphex 2016-11-21 13:31:04 +01:00
parent 6c3a5fe634
commit b93c759d3c

View File

@ -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);
}