eDebug("cursor is %d", cursor);
para->setFont(m_font);
- para->renderString(text, 0);
+ para->renderString(text.empty()?0:text.c_str(), 0);
int glyphs = para->size();
if (m_have_focus)
case evtAction:
if (isVisible())
{
- if ((int)data == ASCII_ACTIONS)
+ if ((long)data == ASCII_ACTIONS)
{
- if ((int)data2 == gotAsciiCode)
+ if ((long)data2 == gotAsciiCode)
{
if (m_content)
{
}
}
}
- else if ((int)data == INPUT_ACTIONS)
+ else if ((long)data == INPUT_ACTIONS)
{
- switch((int)data2)
+ switch((long)data2)
{
case moveLeft:
if (m_content)
return 0;
case evtKey:
{
- int key = (int)data;
- int flags = (int)data2;
+ long key = (long)data;
+ long flags = (long)data2;
if (m_content && !(flags & 1)) // only make/repeat, no break
return m_content->haveKey(key, m_mode);
break;