mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Windows buildfix
This commit is contained in:
parent
1ac44d8eca
commit
b7b7c67ca3
@ -886,14 +886,8 @@ static bool d3d_alive(void *data)
|
|||||||
|
|
||||||
if (resize)
|
if (resize)
|
||||||
{
|
{
|
||||||
gfx_ctx_mode_t mode;
|
|
||||||
|
|
||||||
d3d->should_resize = true;
|
d3d->should_resize = true;
|
||||||
|
video_driver_set_resize(temp_width, temp_height);
|
||||||
mode.width = temp_width;
|
|
||||||
mode.height = temp_height;
|
|
||||||
|
|
||||||
current_video_context.set_resize(video_context_data, mode.width, mode.height);
|
|
||||||
d3d_restore(d3d);
|
d3d_restore(d3d);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -411,6 +411,12 @@ static bool set_resize_null(void *a, unsigned b, unsigned c)
|
|||||||
return false;
|
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:
|
* video_driver_find_handle:
|
||||||
* @idx : index of driver to get handle to.
|
* @idx : index of driver to get handle to.
|
||||||
|
@ -1066,6 +1066,8 @@ void video_driver_set_threaded(bool val);
|
|||||||
void video_driver_get_status(uint64_t *frame_count, bool * is_alive,
|
void video_driver_get_status(uint64_t *frame_count, bool * is_alive,
|
||||||
bool *is_focused);
|
bool *is_focused);
|
||||||
|
|
||||||
|
void video_driver_set_resize(unsigned width, unsigned height);
|
||||||
|
|
||||||
extern video_driver_t video_gl;
|
extern video_driver_t video_gl;
|
||||||
extern video_driver_t video_vulkan;
|
extern video_driver_t video_vulkan;
|
||||||
extern video_driver_t video_psp1;
|
extern video_driver_t video_psp1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user