Changeset 5810 for trunk/src/gdi32/text.cpp
- Timestamp:
- May 27, 2001, 9:01:35 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/text.cpp
r5799 r5810 1 /* $Id: text.cpp,v 1.2 2 2001-05-25 10:05:29sandervl Exp $ */1 /* $Id: text.cpp,v 1.23 2001-05-27 19:01:14 sandervl Exp $ */ 2 2 3 3 /* … … 470 470 return(rc); 471 471 } 472 #if 0 473 //Replaced with Wine functions in user32\text.cpp) 472 474 //****************************************************************************** 473 475 // CB: USER32 function, but here is the better place … … 488 490 return 0; 489 491 } 490 if ((lpString == NULL) || ( nCount > 512) || ((nTabPositions > 0) && (lpnTabStopPositions == NULL)))492 if ((lpString == NULL) || ((nTabPositions > 0) && (lpnTabStopPositions == NULL))) 491 493 { 492 494 SetLastError(ERROR_INVALID_PARAMETER); 493 495 return 0; 494 496 } 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 495 513 //CB: Win95 supports negative values for right aligned text 496 514 for (INT i = 0;i < nTabPositions;i++) … … 623 641 return(rc); 624 642 } 643 #endif 625 644 //****************************************************************************** 626 645 // todo: metafile support
Note:
See TracChangeset
for help on using the changeset viewer.