- strncpy( data->textP, m_msg.ToAscii() , data->textLen - 1 );
- data->textChanged = true;
- data->displaySkipBtn = m_canSkip;
- data->barMaxValue = (uint32_t)m_max;
- data->barCurValue = (uint32_t)m_cur;
- data->delay = (m_max == m_cur);
+ PrgCallbackData *palmData = (PrgCallbackData *)data;
+ strncpy( palmData->textP, m_msg.ToAscii() , palmData->textLen - 1 );
+ palmData->textChanged = true;
+ palmData->displaySkipBtn = m_canSkip;
+ palmData->barMaxValue = (uint32_t)m_max;
+ palmData->barCurValue = (uint32_t)m_cur;
+ palmData->delay = (m_max == m_cur);