mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
Don't use video_context_driver_check_window anymore - go call it
directly
This commit is contained in:
parent
448d2d333c
commit
c73d13d4bc
@ -2019,31 +2019,26 @@ error:
|
||||
|
||||
static bool gl_alive(void *data)
|
||||
{
|
||||
gfx_ctx_size_t size_data;
|
||||
unsigned temp_width = 0;
|
||||
unsigned temp_height = 0;
|
||||
bool ret = false;
|
||||
bool quit = false;
|
||||
bool resize = false;
|
||||
gl_t *gl = (gl_t*)data;
|
||||
bool is_shutdown = rarch_ctl(RARCH_CTL_IS_SHUTDOWN, NULL);
|
||||
|
||||
/* Needed because some context drivers don't track their sizes */
|
||||
video_driver_get_size(&temp_width, &temp_height);
|
||||
|
||||
size_data.quit = &quit;
|
||||
size_data.resize = &resize;
|
||||
size_data.width = &temp_width;
|
||||
size_data.height = &temp_height;
|
||||
gl->ctx_driver->check_window(gl->ctx_data,
|
||||
&quit, &resize, &temp_width, &temp_height, is_shutdown);
|
||||
|
||||
if (video_context_driver_check_window(&size_data))
|
||||
{
|
||||
if (quit)
|
||||
gl->quitting = true;
|
||||
else if (resize)
|
||||
gl->should_resize = true;
|
||||
if (quit)
|
||||
gl->quitting = true;
|
||||
else if (resize)
|
||||
gl->should_resize = true;
|
||||
|
||||
ret = !gl->quitting;
|
||||
}
|
||||
ret = !gl->quitting;
|
||||
|
||||
if (temp_width != 0 && temp_height != 0)
|
||||
video_driver_set_size(&temp_width, &temp_height);
|
||||
|
Loading…
x
Reference in New Issue
Block a user