mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 00:59:44 +00:00
Create wxWindow in heap rather than stack
Center DX9 window Bring Wiimote reconnect confirm dialog to topmost, now only works with OpenGL. (It seems DX9 in full screen doesn't like other windows overlapped upon it.) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4895 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
05b1bfd733
commit
1c09cba69a
3 changed files with 58 additions and 11 deletions
|
@ -166,11 +166,20 @@ CPanel::CPanel(
|
|||
else
|
||||
{
|
||||
// The Wiimote has been disconnect, we offer reconnect here
|
||||
if(AskYesNo("Wiimote %i has been disconnected by system.\n"
|
||||
"Maybe this game doesn't support multi-wiimote,\n"
|
||||
"or maybe it is due to idle time out or other reason.\n\n"
|
||||
"Do you want to reconnect immediately?", lParam + 1, "Confirm", wxYES_NO))
|
||||
wxMessageDialog *dlg = new wxMessageDialog(
|
||||
this,
|
||||
wxString::Format(wxT("Wiimote %i has been disconnected by system.\n")
|
||||
wxT("Maybe this game doesn't support multi-wiimote,\n")
|
||||
wxT("or maybe it is due to idle time out or other reason.\n\n")
|
||||
wxT("Do you want to reconnect immediately?"), lParam + 1),
|
||||
wxT("Reconnect Wiimote Confirm"),
|
||||
wxYES_NO | wxSTAY_ON_TOP | wxICON_INFORMATION, //wxICON_QUESTION,
|
||||
wxDefaultPosition);
|
||||
|
||||
if (dlg->ShowModal() == wxID_YES)
|
||||
GetUsbPointer()->AccessWiiMote(lParam | 0x100)->Activate(true);
|
||||
|
||||
delete dlg;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue