mirror of
https://github.com/libretro/RetroArch
synced 2025-04-24 15:02:35 +00:00
Cut down on some unnecessary wrapper functions
This commit is contained in:
parent
3a7515c82f
commit
04f9b81fed
@ -268,17 +268,6 @@ static bool gfx_ctx_gdi_has_focus(void *data)
|
|||||||
return win32_has_focus();
|
return win32_has_focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool gfx_ctx_gdi_suppress_screensaver(void *data, bool enable)
|
|
||||||
{
|
|
||||||
return win32_suppress_screensaver(data, enable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool gfx_ctx_gdi_get_metrics(void *data,
|
|
||||||
enum display_metric_types type, float *value)
|
|
||||||
{
|
|
||||||
return win32_get_metrics(data, type, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
static enum gfx_ctx_api gfx_ctx_gdi_get_api(void *data)
|
static enum gfx_ctx_api gfx_ctx_gdi_get_api(void *data)
|
||||||
{
|
{
|
||||||
return win32_gdi_api;
|
return win32_gdi_api;
|
||||||
@ -349,13 +338,13 @@ const gfx_ctx_driver_t gfx_ctx_gdi = {
|
|||||||
NULL, /* get_video_output_size */
|
NULL, /* get_video_output_size */
|
||||||
NULL, /* get_video_output_prev */
|
NULL, /* get_video_output_prev */
|
||||||
NULL, /* get_video_output_next */
|
NULL, /* get_video_output_next */
|
||||||
gfx_ctx_gdi_get_metrics,
|
win32_get_metrics,
|
||||||
NULL,
|
NULL,
|
||||||
gfx_ctx_gdi_update_window_title,
|
gfx_ctx_gdi_update_window_title,
|
||||||
gfx_ctx_gdi_check_window,
|
gfx_ctx_gdi_check_window,
|
||||||
gfx_ctx_gdi_set_resize,
|
gfx_ctx_gdi_set_resize,
|
||||||
gfx_ctx_gdi_has_focus,
|
gfx_ctx_gdi_has_focus,
|
||||||
gfx_ctx_gdi_suppress_screensaver,
|
win32_suppress_screensaver,
|
||||||
true, /* has_windowed */
|
true, /* has_windowed */
|
||||||
gfx_ctx_gdi_swap_buffers,
|
gfx_ctx_gdi_swap_buffers,
|
||||||
gfx_ctx_gdi_input_driver,
|
gfx_ctx_gdi_input_driver,
|
||||||
|
@ -752,17 +752,6 @@ static bool gfx_ctx_wgl_has_focus(void *data)
|
|||||||
return win32_has_focus();
|
return win32_has_focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool gfx_ctx_wgl_suppress_screensaver(void *data, bool enable)
|
|
||||||
{
|
|
||||||
return win32_suppress_screensaver(data, enable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool gfx_ctx_wgl_get_metrics(void *data,
|
|
||||||
enum display_metric_types type, float *value)
|
|
||||||
{
|
|
||||||
return win32_get_metrics(data, type, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
static enum gfx_ctx_api gfx_ctx_wgl_get_api(void *data)
|
static enum gfx_ctx_api gfx_ctx_wgl_get_api(void *data)
|
||||||
{
|
{
|
||||||
return win32_api;
|
return win32_api;
|
||||||
@ -913,13 +902,13 @@ const gfx_ctx_driver_t gfx_ctx_wgl = {
|
|||||||
gfx_ctx_wgl_get_video_output_size,
|
gfx_ctx_wgl_get_video_output_size,
|
||||||
gfx_ctx_wgl_get_video_output_prev,
|
gfx_ctx_wgl_get_video_output_prev,
|
||||||
gfx_ctx_wgl_get_video_output_next,
|
gfx_ctx_wgl_get_video_output_next,
|
||||||
gfx_ctx_wgl_get_metrics,
|
win32_get_metrics,
|
||||||
NULL,
|
NULL,
|
||||||
gfx_ctx_wgl_update_title,
|
gfx_ctx_wgl_update_title,
|
||||||
gfx_ctx_wgl_check_window,
|
gfx_ctx_wgl_check_window,
|
||||||
gfx_ctx_wgl_set_resize,
|
gfx_ctx_wgl_set_resize,
|
||||||
gfx_ctx_wgl_has_focus,
|
gfx_ctx_wgl_has_focus,
|
||||||
gfx_ctx_wgl_suppress_screensaver,
|
win32_suppress_screensaver,
|
||||||
true, /* has_windowed */
|
true, /* has_windowed */
|
||||||
gfx_ctx_wgl_swap_buffers,
|
gfx_ctx_wgl_swap_buffers,
|
||||||
gfx_ctx_wgl_input_driver,
|
gfx_ctx_wgl_input_driver,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user