Ignore:
Timestamp:
May 27, 2001, 9:01:35 PM (24 years ago)
Author:
sandervl
Message:

Replaced TabbedTextOutA/W & GetTabbedTextExtentA/W with Wine version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/text.cpp

    r5799 r5810  
    1 /* $Id: text.cpp,v 1.22 2001-05-25 10:05:29 sandervl Exp $ */
     1/* $Id: text.cpp,v 1.23 2001-05-27 19:01:14 sandervl Exp $ */
    22
    33/*
     
    470470  return(rc);
    471471}
     472#if 0
     473//Replaced with Wine functions in user32\text.cpp)
    472474//******************************************************************************
    473475// CB: USER32 function, but here is the better place
     
    488490    return 0;
    489491  }
    490   if ((lpString == NULL) || (nCount >  512) || ((nTabPositions > 0) && (lpnTabStopPositions == NULL)))
     492  if ((lpString == NULL) || ((nTabPositions > 0) && (lpnTabStopPositions == NULL)))
    491493  {
    492494    SetLastError(ERROR_INVALID_PARAMETER);
    493495    return 0;
    494496  }
     497  if(nCount > 512) {
     498      DWORD cbStringNew;
     499      DWORD ret1;
     500      DWORD ret = 0;
     501
     502      dprintf(("WARNING: InternalGetTabbedTextExtentA string longer than 512 chars; splitting up"));
     503      while(nCount) {
     504         cbStringNew = min(500, nCount);
     505
     506         ret = InternalGetTabbedTextExtentA(hDC, lpString, cbStringNew, nTabPositions, lpnTabStopPositions);
     507         lpString += cbStringNew;
     508         nCount   -= cbStringNew;
     509      }
     510      return ret;
     511  }
     512
    495513  //CB: Win95 supports negative values for right aligned text
    496514  for (INT i = 0;i < nTabPositions;i++)
     
    623641  return(rc);
    624642}
     643#endif
    625644//******************************************************************************
    626645// todo: metafile support
Note: See TracChangeset for help on using the changeset viewer.