Allow to call Fl_Sys_Menu_Bar::about() early in the program.

This commit is contained in:
ManoloFLTK 2019-02-24 11:00:58 +01:00
parent 6838814f9e
commit c2ca17b289

View File

@ -166,6 +166,7 @@ void Fl_Sys_Menu_Bar::replace(int index, const char *name)
\param data a pointer transmitted as 2nd argument to the callback.
*/
void Fl_Sys_Menu_Bar::about(Fl_Callback *cb, void *data) {
fl_open_display(); // create the system menu, if needed
driver()->about(cb, data);
}