Skip to content

Commit

Permalink
Kill UI task before showing Guru Meditation
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhinham committed Dec 9, 2021
1 parent 5b84694 commit e099575
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mt32pi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1266,6 +1266,11 @@ void CMT32Pi::PanicHandler()
if (!s_pThis || !s_pThis->m_pLCD)
return;

// Kill UI task
s_pThis->m_bRunning = false;
while (!s_pThis->m_bUITaskDone)
;

const char* pGuru = "Guru Meditation:";
u8 nOffsetX = CUserInterface::CenterMessageOffset(*s_pThis->m_pLCD, pGuru);
s_pThis->m_pLCD->Clear(true);
Expand Down

0 comments on commit e099575

Please sign in to comment.