case VK_F2:
ShowPresetOnTitle = !ShowPresetOnTitle;
if (ShowPresetOnTitle)
{
while (true)
{
SetWindowText(hWnd, "BeatDrop Music Visualizer - (m_nLoadingPreset != 0) ? m_pNewState->m_szDesc : m_pState->m_szDesc");
Sleep(100);
}
wsprintfW(m_szSongTitle, L"Show Preset Name on Window Title ON"); LaunchSongTitleAnim();
}
else
{
SetWindowText(hWnd, "BeatDrop Music Visualizer");
wsprintfW(m_szSongTitle, L"Show Preset Name on Window Title OFF"); LaunchSongTitleAnim();
}
return 0;
I pressed F2 and it changed the title to "BeatDrop Music Visualizer - (m_nLoadingPreset != 0) ? m_pNewState->m_szDesc : m_pState->m_szDesc")".
...and the while
statement freezes BeatDrop for no reason at all.
I would like to see this preset info on window title correctly, like "BeatDrop Music Visualizer - martin - colorwall" or "BeatDrop Music Visualizer ⫸ Geiss - Blur Mix 3".