Strip spaces from pasted IP addresses. Helps #9795. Fix accidental typo

This commit is contained in:
Henrik Rydgård 2017-08-08 16:32:56 +02:00
parent edf0606bf7
commit 8ba5d7ec1e
2 changed files with 2 additions and 2 deletions

View File

@ -1117,7 +1117,7 @@ UI::EventReturn GameSettingsScreen::OnChangeproAdhocServerAddress(UI::EventParam
memset(name, 0, sizeof(name));
if (System_InputBoxGetString("Enter an IP address", g_Config.proAdhocServer.c_str(), name, name_len)) {
g_Config.proAdhocServer = name;
g_Config.proAdhocServer = StripSpaces(name);
}
}
else

View File

@ -252,7 +252,7 @@ int NativeMix(short *audio, int num_samples) {
num_samples = __AudioMix(audio, num_samples, sample_rate > 0 ? sample_rate : 44100);
#ifdef _WIN32
winAudioBackend->Update*();
winAudioBackend->Update();
#endif
return num_samples;