core/MenuStyle_Radio.cpp
changeset 1361 591f6d2fd11d
parent 1335 2047dc42d800
child 1474 a3b73df84d88
     1.1 --- a/core/MenuStyle_Radio.cpp	Sun Aug 19 17:31:26 2007 +0000
     1.2 +++ b/core/MenuStyle_Radio.cpp	Sun Aug 19 18:34:36 2007 +0000
     1.3 @@ -361,6 +361,16 @@
     1.4  	}
     1.5  }
     1.6  
     1.7 +int CRadioDisplay::GetAmountRemaining()
     1.8 +{
     1.9 +	size_t amt = m_Title.size() + 1 + m_BufferText.size();
    1.10 +	if (amt >= 511)
    1.11 +	{
    1.12 +		return 0;
    1.13 +	}
    1.14 +	return (int)(511 - amt);
    1.15 +}
    1.16 +
    1.17  void CRadioDisplay::DeleteThis()
    1.18  {
    1.19  	delete this;