mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Merge branch 'refactor' of https://github.com/libretro/RetroArch into refactor
This commit is contained in:
commit
885f30b429
@ -971,18 +971,22 @@ void video_driver_cached_frame_get(const void **data, unsigned *width,
|
|||||||
|
|
||||||
void video_driver_get_size(unsigned *width, unsigned *height)
|
void video_driver_get_size(unsigned *width, unsigned *height)
|
||||||
{
|
{
|
||||||
|
video_driver_threaded_lock();
|
||||||
if (width)
|
if (width)
|
||||||
*width = video_driver_width;
|
*width = video_driver_width;
|
||||||
if (height)
|
if (height)
|
||||||
*height = video_driver_height;
|
*height = video_driver_height;
|
||||||
|
video_driver_threaded_unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
void video_driver_set_size(unsigned *width, unsigned *height)
|
void video_driver_set_size(unsigned *width, unsigned *height)
|
||||||
{
|
{
|
||||||
|
video_driver_threaded_lock();
|
||||||
if (width)
|
if (width)
|
||||||
video_driver_width = *width;
|
video_driver_width = *width;
|
||||||
if (height)
|
if (height)
|
||||||
video_driver_height = *height;
|
video_driver_height = *height;
|
||||||
|
video_driver_threaded_unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user