From 1d07c6306e43a5be470a50c947c836ff42e961e0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 8 Jan 2016 03:09:41 +0100 Subject: [PATCH] Buildfixes --- gfx/d3d/d3d.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index f12af9eab5..73e1276470 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -283,13 +283,14 @@ static bool d3d_init_base(void *data, const video_info_t *info) return true; } -static bool d3d_calculate_rect(void *data, +static void d3d_calculate_rect(void *data, unsigned *width, unsigned *height, int *x, int *y, bool force_full, bool allow_rotate) { - float device_aspect = (float)*width / *height; + float device_aspect = (float)*width / *height; + d3d_video_t *d3d = (d3d_video_t*)data; settings_t *settings = config_get_ptr(); float desired_aspect = video_driver_get_aspect_ratio();