From 6d4ac23f264c7429dee93388300502bd107d156f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 29 Apr 2017 16:20:26 +0200 Subject: [PATCH] Cleanup --- input/drivers/android_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input/drivers/android_input.c b/input/drivers/android_input.c index 913024796f..721cf2e290 100644 --- a/input/drivers/android_input.c +++ b/input/drivers/android_input.c @@ -607,11 +607,11 @@ static INLINE void android_mouse_calculate_deltas(android_input_t *android, float x, y; float x_scale = 1; float y_scale = 1; - video_viewport_t *custom_vp = video_viewport_get_custom(); struct retro_system_av_info *av_info = video_viewport_get_system_av_info(); - if(custom_vp && av_info) + if(av_info) { + video_viewport_t *custom_vp = video_viewport_get_custom(); const struct retro_game_geometry *geom = (const struct retro_game_geometry*)&av_info->geometry; x_scale = 2 * (float)geom->base_width / (float)custom_vp->width; y_scale = 2 * (float)geom->base_height / (float)custom_vp->height;