From 560d28b1889cfac7006a84d6a344d22cc72dfe23 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 27 Apr 2015 19:13:09 +0200 Subject: [PATCH] menu_display_update_pending - cleanup --- menu/menu_display.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/menu/menu_display.c b/menu/menu_display.c index 5c1d96f906..60d687b8fb 100644 --- a/menu/menu_display.c +++ b/menu/menu_display.c @@ -24,12 +24,13 @@ bool menu_display_update_pending(void) { runloop_t *runloop = rarch_main_get_ptr(); - if (!runloop) - return false; - if (runloop->frames.video.current.menu.animation.is_active || - runloop->frames.video.current.menu.label.is_updated || - runloop->frames.video.current.menu.framebuf.dirty) - return true; + if (runloop) + { + if (runloop->frames.video.current.menu.animation.is_active || + runloop->frames.video.current.menu.label.is_updated || + runloop->frames.video.current.menu.framebuf.dirty) + return true; + } return false; }