Windows buildfix

This commit is contained in:
twinaphex 2017-05-20 17:47:56 +02:00
parent 1ac44d8eca
commit b7b7c67ca3
3 changed files with 9 additions and 7 deletions

View File

@ -886,14 +886,8 @@ static bool d3d_alive(void *data)
if (resize)
{
gfx_ctx_mode_t mode;
d3d->should_resize = true;
mode.width = temp_width;
mode.height = temp_height;
current_video_context.set_resize(video_context_data, mode.width, mode.height);
video_driver_set_resize(temp_width, temp_height);
d3d_restore(d3d);
}

View File

@ -411,6 +411,12 @@ static bool set_resize_null(void *a, unsigned b, unsigned c)
return false;
}
void video_driver_set_resize(unsigned width, unsigned height)
{
if (current_video_context.set_resize)
current_video_context.set_resize(video_context_data, width, height);
}
/**
* video_driver_find_handle:
* @idx : index of driver to get handle to.

View File

@ -1066,6 +1066,8 @@ void video_driver_set_threaded(bool val);
void video_driver_get_status(uint64_t *frame_count, bool * is_alive,
bool *is_focused);
void video_driver_set_resize(unsigned width, unsigned height);
extern video_driver_t video_gl;
extern video_driver_t video_vulkan;
extern video_driver_t video_psp1;