Start filling in more resolution functionality for Windows

This commit is contained in:
twinaphex 2017-08-09 04:17:32 +02:00
parent cea3cab3f4
commit 9272d26269
2 changed files with 18 additions and 4 deletions

View File

@ -702,6 +702,20 @@ static void gfx_ctx_wgl_set_flags(void *data, uint32_t flags)
win32_core_hw_context_enable = true;
}
static void gfx_ctx_wgl_get_video_output_size(void *data,
unsigned *width, unsigned *height)
{
win32_get_video_output_size(width, height);
}
static void gfx_ctx_wgl_get_video_output_prev(void *data)
{
}
static void gfx_ctx_wgl_get_video_output_next(void *data)
{
}
const gfx_ctx_driver_t gfx_ctx_wgl = {
gfx_ctx_wgl_init,
gfx_ctx_wgl_destroy,
@ -709,9 +723,9 @@ const gfx_ctx_driver_t gfx_ctx_wgl = {
gfx_ctx_wgl_swap_interval,
gfx_ctx_wgl_set_video_mode,
gfx_ctx_wgl_get_video_size,
NULL, /* get_video_output_size */
NULL, /* get_video_output_prev */
NULL, /* get_video_output_next */
gfx_ctx_wgl_get_video_output_size,
gfx_ctx_wgl_get_video_output_prev,
gfx_ctx_wgl_get_video_output_next,
gfx_ctx_wgl_get_metrics,
NULL,
gfx_ctx_wgl_update_title,

View File

@ -4333,7 +4333,7 @@ static int action_ok_video_resolution(const char *path,
msg[0] = '\0';
#ifdef __CELLOS_LV2__
#if defined(__CELLOS_LV2__) || defined(_WIN32)
command_event(CMD_EVENT_REINIT, NULL);
#endif
video_driver_set_video_mode(width, height, true);