Changeset 5810 for trunk/src/gdi32


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

Replaced TabbedTextOutA/W & GetTabbedTextExtentA/W with Wine version

Location:
trunk/src/gdi32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/gdi32.DEF

    r5390 r5810  
    1 ; $Id: gdi32.DEF,v 1.16 2001-03-27 20:47:52 sandervl Exp $
     1; $Id: gdi32.DEF,v 1.17 2001-05-27 19:01:14 sandervl Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    367367    InternalDrawTextExA                                         @1205 NONAME
    368368    InternalDrawTextExW                                         @1206 NONAME
    369     InternalTabbedTextOutA                                      @1207 NONAME
    370     InternalTabbedTextOutW                                      @1208 NONAME
    371     InternalGetTabbedTextExtentA                                @1209 NONAME
    372     InternalGetTabbedTextExtentW                                @1210 NONAME
     369;;    InternalTabbedTextOutA                                      @1207 NONAME
     370;;    InternalTabbedTextOutW                                      @1208 NONAME
     371;;    InternalGetTabbedTextExtentA                                @1209 NONAME
     372;;    InternalGetTabbedTextExtentW                                @1210 NONAME
    373373    _setWinDeviceRegionFromPMDeviceRegion@16                    @1211 NONAME
    374374
  • 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.