Skip to content

Commit

Permalink
bugfix: don't shutdown graphics when showing gui message
Browse files Browse the repository at this point in the history
This caused a crash in the case where if the "using the AROS ROM" message was shown, then you entered the GUI and pressed reset, triggering the message to be shown again, then pressed OK - the Amiga texture was already deleted
  • Loading branch information
midwan authored Nov 1, 2023
1 parent 9485e43 commit bf3ab27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/osdep/amiberry_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,6 @@ void gui_message(const char* format, ...)
vsprintf(msg, format, parms);
va_end(parms);

graphics_subshutdown();
ShowMessage("", msg, "", "", "Ok", "");
}

Expand Down Expand Up @@ -1133,4 +1132,4 @@ void save_mapping_to_file(std::string mapping)
file_output << std::endl << mapping << std::endl;
file_output.close();
}
}
}

0 comments on commit bf3ab27

Please sign in to comment.