Cleanup
This commit is contained in:
parent
60f3265017
commit
0c78d2ec27
|
@ -103,7 +103,6 @@ static void fpga_gfx_create(fpga_t *fpga)
|
||||||
static void *fpga_gfx_init(const video_info_t *video,
|
static void *fpga_gfx_init(const video_info_t *video,
|
||||||
const input_driver_t **input, void **input_data)
|
const input_driver_t **input, void **input_data)
|
||||||
{
|
{
|
||||||
const gfx_ctx_driver_t *ctx_driver = NULL;
|
|
||||||
fpga_t *fpga = (fpga_t*)calloc(1, sizeof(*fpga));
|
fpga_t *fpga = (fpga_t*)calloc(1, sizeof(*fpga));
|
||||||
|
|
||||||
*input = NULL;
|
*input = NULL;
|
||||||
|
|
|
@ -200,7 +200,6 @@ static void *gdi_gfx_init(const video_info_t *video,
|
||||||
{
|
{
|
||||||
unsigned full_x, full_y;
|
unsigned full_x, full_y;
|
||||||
void *ctx_data = NULL;
|
void *ctx_data = NULL;
|
||||||
const gfx_ctx_driver_t *ctx_driver = NULL;
|
|
||||||
unsigned mode_width = 0, mode_height = 0;
|
unsigned mode_width = 0, mode_height = 0;
|
||||||
unsigned win_width = 0, win_height = 0;
|
unsigned win_width = 0, win_height = 0;
|
||||||
unsigned temp_width = 0, temp_height = 0;
|
unsigned temp_width = 0, temp_height = 0;
|
||||||
|
@ -479,10 +478,6 @@ static bool gdi_gfx_frame(void *data, const void *frame,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gdi_gfx_set_nonblock_state(void *a, bool b, bool c, unsigned d)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool gdi_gfx_alive(void *data)
|
static bool gdi_gfx_alive(void *data)
|
||||||
{
|
{
|
||||||
unsigned temp_width = 0;
|
unsigned temp_width = 0;
|
||||||
|
@ -505,6 +500,7 @@ static bool gdi_gfx_alive(void *data)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void gdi_gfx_set_nonblock_state(void *a, bool b, bool c, unsigned d) { }
|
||||||
static bool gdi_gfx_focus(void *data) { return true; }
|
static bool gdi_gfx_focus(void *data) { return true; }
|
||||||
static bool gdi_gfx_suppress_screensaver(void *data, bool enable) { return false; }
|
static bool gdi_gfx_suppress_screensaver(void *data, bool enable) { return false; }
|
||||||
static bool gdi_gfx_has_windowed(void *data) { return true; }
|
static bool gdi_gfx_has_windowed(void *data) { return true; }
|
||||||
|
@ -551,14 +547,7 @@ static void gdi_gfx_free(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool gdi_gfx_set_shader(void *data,
|
static bool gdi_gfx_set_shader(void *data,
|
||||||
enum rarch_shader_type type, const char *path)
|
enum rarch_shader_type type, const char *path) { return false; }
|
||||||
{
|
|
||||||
(void)data;
|
|
||||||
(void)type;
|
|
||||||
(void)path;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void gdi_set_texture_enable(
|
static void gdi_set_texture_enable(
|
||||||
void *data, bool state, bool full_screen)
|
void *data, bool state, bool full_screen)
|
||||||
|
@ -670,12 +659,7 @@ static void gdi_unload_texture(void *data,
|
||||||
free(texture);
|
free(texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t gdi_get_flags(void *data)
|
static uint32_t gdi_get_flags(void *data) { return 0; }
|
||||||
{
|
|
||||||
uint32_t flags = 0;
|
|
||||||
|
|
||||||
return flags;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void gdi_get_video_output_size(void *data,
|
static void gdi_get_video_output_size(void *data,
|
||||||
unsigned *width, unsigned *height)
|
unsigned *width, unsigned *height)
|
||||||
|
@ -722,16 +706,9 @@ static const video_poke_interface_t gdi_poke_interface = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static void gdi_gfx_get_poke_interface(void *data,
|
static void gdi_gfx_get_poke_interface(void *data,
|
||||||
const video_poke_interface_t **iface)
|
const video_poke_interface_t **iface) { *iface = &gdi_poke_interface; }
|
||||||
{
|
|
||||||
(void)data;
|
|
||||||
*iface = &gdi_poke_interface;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void gdi_gfx_set_viewport(void *data, unsigned viewport_width,
|
static void gdi_gfx_set_viewport(void *data, unsigned viewport_width,
|
||||||
unsigned viewport_height, bool force_full, bool allow_rotate)
|
unsigned viewport_height, bool force_full, bool allow_rotate) { }
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
video_driver_t video_gdi = {
|
video_driver_t video_gdi = {
|
||||||
gdi_gfx_init,
|
gdi_gfx_init,
|
||||||
|
|
Loading…
Reference in New Issue