mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 08:39:13 +01:00
Wiimote: Changed a %s to a %u that could cause a crash in WII_IPC_HLE_WiiMote.cpp. Made the configuration window center only if there is room for it, that should fix issue 557.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2122 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
79f56c9e97
commit
6f39549842
@ -1035,7 +1035,7 @@ namespace Core
|
|||||||
LOGV(WII_IPC_WIIMOTE, 3, "Callback_WiimoteInput:");
|
LOGV(WII_IPC_WIIMOTE, 3, "Callback_WiimoteInput:");
|
||||||
//std::string Temp = ArrayToString(pData, _Size, 0, 50);
|
//std::string Temp = ArrayToString(pData, _Size, 0, 50);
|
||||||
//LOGV(WII_IPC_WIIMOTE, 3, " Data: %s", Temp.c_str());
|
//LOGV(WII_IPC_WIIMOTE, 3, " Data: %s", Temp.c_str());
|
||||||
LOGV(WII_IPC_WIIMOTE, 3, " Channel: %s", _channelID);
|
//LOGV(WII_IPC_WIIMOTE, 3, " Channel: %u", _channelID);
|
||||||
|
|
||||||
s_Usb->m_WiiMotes[0].SendL2capData(_channelID, _pData, _Size);
|
s_Usb->m_WiiMotes[0].SendL2capData(_channelID, _pData, _Size);
|
||||||
LOGV(WII_IPC_WIIMOTE, 3, "=========================================================");
|
LOGV(WII_IPC_WIIMOTE, 3, "=========================================================");
|
||||||
|
@ -750,7 +750,12 @@ void ConfigDialog::CreateGUIControls()
|
|||||||
this->Layout();
|
this->Layout();
|
||||||
|
|
||||||
Fit();
|
Fit();
|
||||||
Center();
|
|
||||||
|
// Center the window if there is room for it
|
||||||
|
#ifdef _WIN32
|
||||||
|
if (GetSystemMetrics(SM_CYFULLSCREEN) > 800)
|
||||||
|
Center();
|
||||||
|
#endif
|
||||||
|
|
||||||
ControlsCreated = true;
|
ControlsCreated = true;
|
||||||
/////////////////////////////////
|
/////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user