From b93c759d3cc6861c4845884519a4b4ac3f0362b8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 21 Nov 2016 13:31:04 +0100 Subject: [PATCH] (gfx/video_driver.c) Simplifications --- gfx/video_driver.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 802a429401..3207ce3b47 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -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); }