Changeset 8760 for trunk/src/gdi32/text.cpp
- Timestamp:
- Jun 25, 2002, 9:21:03 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/text.cpp
r7721 r8760 1 /* $Id: text.cpp,v 1. 29 2002-01-02 18:36:01sandervl Exp $ */1 /* $Id: text.cpp,v 1.30 2002-06-25 07:21:03 sandervl Exp $ */ 2 2 3 3 /* … … 282 282 BOOL WIN32API TextOutA(HDC hdc,int nXStart,int nYStart,LPCSTR lpszString,int cbString) 283 283 { 284 dprintf(("GDI32: TextOutA %x (%d,%d) %d % *s", hdc, nXStart, nYStart, cbString, cbString, lpszString));284 dprintf(("GDI32: TextOutA %x (%d,%d) %d %.*s", hdc, nXStart, nYStart, cbString, cbString, lpszString)); 285 285 return InternalTextOutA(hdc,nXStart,nYStart,0,NULL,lpszString,cbString,NULL,FALSE); 286 286 } … … 289 289 BOOL WIN32API TextOutW(HDC hdc,int nXStart,int nYStart,LPCWSTR lpszString,int cbString) 290 290 { 291 #ifdef DEBUG 292 //runtime lib ignores width specifier and also prints string until terminator is found 293 LPWSTR buggyrtl = (LPWSTR)malloc((cbString+1)*2); 294 memcpy(buggyrtl, lpszString, cbString*2); 295 buggyrtl[cbString] = 0; 296 dprintf(("GDI32: TextOutW %x (%d,%d) %d %ls", hdc, nXStart, nYStart, cbString, buggyrtl)); 297 free(buggyrtl); 298 #endif 291 dprintf(("GDI32: TextOutW %x (%d,%d) %d %.*ls", hdc, nXStart, nYStart, cbString, cbString, lpszString)); 299 292 return InternalTextOutW(hdc,nXStart,nYStart,0,NULL,lpszString,cbString,NULL,FALSE); 300 293 } … … 337 330 { 338 331 #if 1 339 dprintf(("GDI32: GetTextExtentPointA %x % *s %d", hdc, cbString, lpsz, cbString));332 dprintf(("GDI32: GetTextExtentPointA %x %.*s %d", hdc, cbString, lpsz, cbString)); 340 333 341 334 if(lpsz == NULL || cbString < 0 || lpsSize == NULL) … … 468 461 } 469 462 470 dprintf(("GDI32: GetTextExtentPointW %x % x %d %x", hdc, lpString, cbString, lpSize));463 dprintf(("GDI32: GetTextExtentPointW %x %.*ls %d %x", hdc, cbString, lpString, cbString, lpSize)); 471 464 472 465 astring = (char *)malloc((cbString+1)*sizeof(WCHAR));
Note:
See TracChangeset
for help on using the changeset viewer.