Loading

Paste #pjb22lrrb

  1.     cached_text_t* pEntry = m_aCache + iHash;
  2.     if(pEntry->iMessageLength != iMessageLength || pEntry->iWidth > iWidth
  3.         || (iWidth != INT_MAX && pEntry->iWidth < iWidth)
  4.         || pEntry->eAlign != eAlign || !pEntry->bIsValid
  5.         || memcmp(pEntry->sMessage, sMessage, iMessageLength) != 0)
  6.     {
  7.         // Cache entry does not match the message being drawn, so discard the
  8.         // cache entry.
  9.         _freeTexture(pEntry);
  10.         _setNullTexture(pEntry);
  11.         delete[] pEntry->pData;
  12.         pEntry->pData = NULL;
  13.         pEntry->bIsValid = false;
  14.  
  15.         ......

Comments