From c6f55eeb94f360a62b9aa8cbd8e194cb9b278910 Mon Sep 17 00:00:00 2001 From: Barry Rowe Date: Thu, 12 Dec 2019 14:09:23 -0800 Subject: [PATCH] Fixed a segfault and an issue with AI Service overlay's image mode. --- menu/widgets/menu_widgets.c | 1 + retroarch.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/menu/widgets/menu_widgets.c b/menu/widgets/menu_widgets.c index 37154947ee..86ab60769e 100644 --- a/menu/widgets/menu_widgets.c +++ b/menu/widgets/menu_widgets.c @@ -1354,6 +1354,7 @@ void menu_widgets_frame(video_frame_info_t *video_info) 0.00, 1.00, 0.00, 1.00, 0.00, 1.00, 0.00, 1.00, }; + menu_display_set_alpha(menu_widgets_pure_white, 1.0f); menu_widgets_draw_icon_blend(video_info, video_info->width, video_info->height, diff --git a/retroarch.c b/retroarch.c index a35a0ae76d..751e0e6c7f 100644 --- a/retroarch.c +++ b/retroarch.c @@ -4180,6 +4180,11 @@ static void handle_translation_cb( if (string_is_equal(error_string, "No text found.")) { RARCH_LOG("No text found...\n"); + if (!text_string) + { + text_string = (char*)malloc(15); + } + strlcpy(text_string, error_string, 15); #ifdef HAVE_MENU_WIDGETS if (menu_widgets_paused)