diff --git a/configuration.h b/configuration.h index e244363830..a399359686 100644 --- a/configuration.h +++ b/configuration.h @@ -25,7 +25,7 @@ #include #include -#include "gfx/video_driver.h" +#include "gfx/video_defines.h" #include "input/input_defines.h" #include "led/led_defines.h" diff --git a/gfx/video_defines.h b/gfx/video_defines.h index 1bef08c767..bf5a821972 100644 --- a/gfx/video_defines.h +++ b/gfx/video_defines.h @@ -135,6 +135,16 @@ enum text_alignment #define FONT_COLOR_GET_ALPHA(col) (((col) >> 0) & 0xff) #define FONT_COLOR_ARGB_TO_RGBA(col) ( (((col) >> 24) & 0xff) | (((unsigned)(col) << 8) & 0xffffff00) ) +typedef struct video_viewport +{ + int x; + int y; + unsigned width; + unsigned height; + unsigned full_width; + unsigned full_height; +} video_viewport_t; + RETRO_END_DECLS #endif diff --git a/gfx/video_driver.h b/gfx/video_driver.h index dd195698e4..bdce618fcb 100644 --- a/gfx/video_driver.h +++ b/gfx/video_driver.h @@ -681,16 +681,6 @@ typedef struct gfx_ctx_ident const char *ident; } gfx_ctx_ident_t; -typedef struct video_viewport -{ - int x; - int y; - unsigned width; - unsigned height; - unsigned full_width; - unsigned full_height; -} video_viewport_t; - struct aspect_ratio_elem { char name[64];