(GDI) Implement resolution callback functions

This commit is contained in:
twinaphex 2020-07-25 19:36:19 +02:00
parent 9f20a48602
commit 30dd294c43

View File

@ -691,6 +691,26 @@ static uint32_t gdi_get_flags(void *data)
return flags;
}
static void gdi_get_video_output_size(void *data,
unsigned *width, unsigned *height)
{
win32_get_video_output_size(width, height);
}
static void gdi_get_video_output_prev(void *data)
{
unsigned width = 0;
unsigned height = 0;
win32_get_video_output_prev(&width, &height);
}
static void gdi_get_video_output_next(void *data)
{
unsigned width = 0;
unsigned height = 0;
win32_get_video_output_next(&width, &height);
}
static const video_poke_interface_t gdi_poke_interface = {
gdi_get_flags,
gdi_load_texture,
@ -698,9 +718,9 @@ static const video_poke_interface_t gdi_poke_interface = {
gdi_set_video_mode,
win32_get_refresh_rate,
NULL,
NULL, /* get_video_output_size */
NULL, /* get_video_output_prev */
NULL, /* get_video_output_next */
gdi_get_video_output_size,
gdi_get_video_output_prev,
gdi_get_video_output_next,
NULL,
NULL,
NULL,