From 4162311eb7babf501051da2ee4fb6f024fc1726d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 9 Sep 2014 22:41:04 +0200 Subject: [PATCH] Return true for stub read_viewport function implementations --- gfx/exynos_gfx.c | 2 +- gfx/gx/gx_gfx.c | 9 ++++++++- gfx/nullgfx.c | 2 +- gfx/omap_gfx.c | 2 +- gfx/psp/psp1_gfx.c | 2 +- gfx/sdl_gfx.c | 2 +- gfx/vg.c | 2 +- gfx/xenon360_gfx.c | 2 +- gfx/xvideo.c | 2 +- 9 files changed, 16 insertions(+), 9 deletions(-) diff --git a/gfx/exynos_gfx.c b/gfx/exynos_gfx.c index 79821e0691..ee79b44df7 100644 --- a/gfx/exynos_gfx.c +++ b/gfx/exynos_gfx.c @@ -1472,7 +1472,7 @@ static bool exynos_gfx_read_viewport(void *data, uint8_t *buffer) (void)data; (void)buffer; - return false; + return true; } const video_driver_t video_exynos = { diff --git a/gfx/gx/gx_gfx.c b/gfx/gx/gx_gfx.c index d36bc23dad..8baaa5ad9c 100644 --- a/gfx/gx/gx_gfx.c +++ b/gfx/gx/gx_gfx.c @@ -1128,6 +1128,13 @@ static void gx_viewport_info(void *data, struct rarch_viewport *vp) *vp = gx->vp; } +static bool gx_read_viewport(void *data, uint8_t *buffer) +{ + (void)data; + (void)buffer; + return true; +} + static const video_poke_interface_t gx_poke_interface = { NULL, gx_set_aspect_ratio, @@ -1333,7 +1340,7 @@ const video_driver_t video_gx = { "gx", gx_set_rotation, gx_viewport_info, - NULL, + gx_read_viewport, #ifdef HAVE_OVERLAY gx_get_overlay_interface, #endif diff --git a/gfx/nullgfx.c b/gfx/nullgfx.c index 143137129d..0b8f5fc23d 100644 --- a/gfx/nullgfx.c +++ b/gfx/nullgfx.c @@ -91,7 +91,7 @@ static bool null_gfx_read_viewport(void *data, uint8_t *buffer) (void)data; (void)buffer; - return false; + return true; } static void null_gfx_get_poke_interface(void *data, diff --git a/gfx/omap_gfx.c b/gfx/omap_gfx.c index 8316242a14..2f28b8075f 100644 --- a/gfx/omap_gfx.c +++ b/gfx/omap_gfx.c @@ -900,7 +900,7 @@ static bool omap_gfx_read_viewport(void *data, uint8_t *buffer) (void)data; (void)buffer; - return false; + return true; } static void omap_gfx_get_poke_interface(void *data, diff --git a/gfx/psp/psp1_gfx.c b/gfx/psp/psp1_gfx.c index 582e64d52c..8c484c1df0 100644 --- a/gfx/psp/psp1_gfx.c +++ b/gfx/psp/psp1_gfx.c @@ -773,7 +773,7 @@ static void psp_viewport_info(void *data, struct rarch_viewport *vp) static bool psp_read_viewport(void *data, uint8_t *buffer) { - return false; + return true; } static const video_poke_interface_t psp_poke_interface = { diff --git a/gfx/sdl_gfx.c b/gfx/sdl_gfx.c index bdf1319e3b..cb2489e0be 100644 --- a/gfx/sdl_gfx.c +++ b/gfx/sdl_gfx.c @@ -513,7 +513,7 @@ static bool sdl_gfx_read_viewport(void *data, uint8_t *buffer) (void)data; (void)buffer; - return false; + return true; } const video_driver_t video_sdl = { diff --git a/gfx/vg.c b/gfx/vg.c index 030c5ebd80..67f8c10666 100644 --- a/gfx/vg.c +++ b/gfx/vg.c @@ -441,7 +441,7 @@ static bool vg_read_viewport(void *data, uint8_t *buffer) (void)data; (void)buffer; - return false; + return true; } static void vg_get_poke_interface(void *data, diff --git a/gfx/xenon360_gfx.c b/gfx/xenon360_gfx.c index 57c3d93631..9c66403fb7 100644 --- a/gfx/xenon360_gfx.c +++ b/gfx/xenon360_gfx.c @@ -290,7 +290,7 @@ static bool xenon360_gfx_read_viewport(void *data, uint8_t *buffer) (void)data; (void)buffer; - return false; + return true; } static void xenon360_gfx_get_poke_interface(void *data, diff --git a/gfx/xvideo.c b/gfx/xvideo.c index e1f1efb656..f0c25fd488 100644 --- a/gfx/xvideo.c +++ b/gfx/xvideo.c @@ -820,7 +820,7 @@ static bool xv_read_viewport(void *data, uint8_t *buffer) (void)data; (void)buffer; - return false; + return true; } static void xv_get_poke_interface(void *data,