mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Merge pull request #1527 from vanfanel/master
Free menu resources when exiting RA from menu. Changed console restore f...
This commit is contained in:
commit
2721c84a1b
@ -148,7 +148,7 @@ end:
|
|||||||
close (_dispvars->fd);
|
close (_dispvars->fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dispmanx_unblank_console(void *data)
|
static void dispmanx_restore_console(void *data)
|
||||||
{
|
{
|
||||||
struct dispmanx_video *_dispvars = data;
|
struct dispmanx_video *_dispvars = data;
|
||||||
|
|
||||||
@ -631,6 +631,10 @@ static void dispmanx_gfx_free(void *data)
|
|||||||
if (!_dispvars)
|
if (!_dispvars)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* Free menu resurces if we are in menu when exiting. */
|
||||||
|
if (_dispvars->menu_active)
|
||||||
|
dispmanx_free_menu_resources(_dispvars);
|
||||||
|
|
||||||
dispmanx_free_main_resources(_dispvars);
|
dispmanx_free_main_resources(_dispvars);
|
||||||
|
|
||||||
/* Close display and deinitialize. */
|
/* Close display and deinitialize. */
|
||||||
@ -645,7 +649,7 @@ static void dispmanx_gfx_free(void *data)
|
|||||||
free (_dispvars->pages);
|
free (_dispvars->pages);
|
||||||
_dispvars->pages = NULL;
|
_dispvars->pages = NULL;
|
||||||
|
|
||||||
dispmanx_unblank_console(_dispvars);
|
dispmanx_restore_console(_dispvars);
|
||||||
}
|
}
|
||||||
|
|
||||||
video_driver_t video_dispmanx = {
|
video_driver_t video_dispmanx = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user