diff --git a/gfx/video_driver.c b/gfx/video_driver.c index cfc8d20cd5..4f1caff738 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -23,6 +23,9 @@ #include "../general.h" #include "../retroarch.h" +static unsigned video_width; +static unsigned video_height; + static const video_driver_t *video_drivers[] = { #ifdef HAVE_OPENGL &video_gl, @@ -840,25 +843,18 @@ bool video_driver_frame(const void *frame, unsigned width, void video_driver_get_size(unsigned *width, unsigned *height) { - global_t *global = global_get_ptr(); if (width) - *width = global->video_data.width; + *width = video_width; if (height) - *height = global->video_data.height; + *height = video_height; } void video_driver_set_size_width(unsigned width) { - global_t *global = global_get_ptr(); - if (!global) - return; - global->video_data.width = width; + video_width = width; } void video_driver_set_size_height(unsigned height) { - global_t *global = global_get_ptr(); - if (!global) - return; - global->video_data.height = height; + video_height = height; } diff --git a/runloop.h b/runloop.h index b194d9d818..b10a5681f0 100644 --- a/runloop.h +++ b/runloop.h @@ -203,13 +203,6 @@ typedef struct global unsigned num_ports; } system; - struct - { - unsigned width; - unsigned height; - } video_data; - - struct { rarch_softfilter_t *filter;