Merge "Fix rare crash seen when dereferencing backgroundIcon[NONE]."
This commit is contained in:
@@ -376,6 +376,7 @@ void ScreenRecoveryUI::Init()
|
||||
text_cols = gr_fb_width() / char_width;
|
||||
if (text_cols > kMaxCols - 1) text_cols = kMaxCols - 1;
|
||||
|
||||
backgroundIcon[NONE] = NULL;
|
||||
LoadBitmap("icon_installing", &backgroundIcon[INSTALLING_UPDATE]);
|
||||
backgroundIcon[ERASING] = backgroundIcon[INSTALLING_UPDATE];
|
||||
LoadBitmap("icon_error", &backgroundIcon[ERROR]);
|
||||
|
||||
Reference in New Issue
Block a user