(PS3) Build fix

This commit is contained in:
twinaphex 2015-02-24 22:03:49 +01:00
parent f80e3740aa
commit 01e2a6854a

View File

@ -15,6 +15,7 @@
*/
#include "../../driver.h"
#include "../../retroarch.h"
#include "../../ps3/sdk_defines.h"
#ifdef HAVE_LIBDBGFONT
@ -238,6 +239,29 @@ static void gfx_ctx_ps3_get_video_output_size(void *data,
*height = resolution.height;
}
static void gfx_ctx_ps3_get_video_output_prev(void *data)
{
if (g_extern.console.screen.resolutions.current.idx)
{
g_extern.console.screen.resolutions.current.idx--;
g_extern.console.screen.resolutions.current.id =
g_extern.console.screen.resolutions.list
[g_extern.console.screen.resolutions.current.idx];
}
}
static void gfx_ctx_ps3_get_video_output_next(void *data)
{
if (g_extern.console.screen.resolutions.current.idx + 1 <
g_extern.console.screen.resolutions.count)
{
g_extern.console.screen.resolutions.current.idx++;
g_extern.console.screen.resolutions.current.id =
g_extern.console.screen.resolutions.list
[g_extern.console.screen.resolutions.current.idx];
}
}
static bool gfx_ctx_ps3_init(void *data)
{
gfx_ctx_ps3_data_t *ps3 = (gfx_ctx_ps3_data_t*)