diff --git a/gfx/video_viewport.c b/gfx/video_viewport.c index 7def321913..bf62498309 100644 --- a/gfx/video_viewport.c +++ b/gfx/video_viewport.c @@ -148,11 +148,12 @@ void video_viewport_set_config(void) * Gets viewport scaling dimensions based on * scaled integer aspect ratio. **/ -void video_viewport_get_scaled_integer(struct rarch_viewport *vp, +void video_viewport_get_scaled_integer(void *data, unsigned width, unsigned height, float aspect_ratio, bool keep_aspect) { int padding_x = 0, padding_y = 0; + struct rarch_viewport *vp = (struct rarch_viewport*)data; if (g_settings.video.aspect_ratio_idx == ASPECT_RATIO_CUSTOM) { diff --git a/gfx/video_viewport.h b/gfx/video_viewport.h index 3560f7df17..bd8e6bb7ba 100644 --- a/gfx/video_viewport.h +++ b/gfx/video_viewport.h @@ -124,7 +124,7 @@ void video_viewport_set_config(void); * Gets viewport scaling dimensions based on * scaled integer aspect ratio. **/ -void video_viewport_get_scaled_integer(struct rarch_viewport *vp, +void video_viewport_get_scaled_integer(void *data, unsigned width, unsigned height, float aspect_ratio, bool keep_aspect);