Menu black overlay fix (need to give the pointer of the current window)

This commit is contained in:
Bertrand Songis
2019-12-13 20:53:54 +01:00
parent 6cab260ee6
commit 81ce0398bd
30 changed files with 76 additions and 73 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ uint8_t mainRequestFlags = 0;
#if defined(LIBOPENUI)
void openUsbMenu()
{
auto menu = new Menu();
auto menu = new Menu(&mainWindow);
menu->setTitle("USB");
menu->addLine(STR_USB_JOYSTICK, [] {
setSelectedUsbMode(USB_JOYSTICK_MODE);