Changeset 19304
- Timestamp:
- Jun 25, 2002, 9:11:32 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/user32/text.c ¶
r18255 r19304 55 55 /********************************************************************* 56 56 * Return next line of text from a string. 57 * 57 * 58 58 * hdc - handle to DC. 59 59 * str - string to parse into lines. … … 68 68 * 69 69 * FIXME: 70 * GetTextExtentPoint is used to get the width of each character, 70 * GetTextExtentPoint is used to get the width of each character, 71 71 * rather than GetCharABCWidth... So the whitespace between 72 72 * characters is ignored, and the reported len is too great. … … 110 110 } 111 111 break; 112 112 113 113 case PREFIX: 114 114 if (!(format & DT_NOPREFIX) && *count > 1) … … 130 130 } 131 131 break; 132 132 133 133 case TAB: 134 134 if (format & DT_EXPANDTABS) … … 207 207 } 208 208 } 209 209 210 210 *len = j; 211 211 return NULL; … … 253 253 254 254 #ifdef __WIN32OS2__ 255 dprintf(("DrawTextExW: % ls, %d , [(%d,%d),(%d,%d)]\n", str, count,255 dprintf(("DrawTextExW: %.*ls, %d , [(%d,%d),(%d,%d)]\n", count, str, count, 256 256 rect->left, rect->top, rect->right, rect->bottom)); 257 257 #else … … 500 500 * We are going to get a lot of code-duplication once this migration is 501 501 * completed... 502 * 502 * 503 503 */ 504 504 static BOOL TEXT_GrayString(HDC hdc, HBRUSH hb, GRAYSTRINGPROC fn, LPARAM lp, INT len, … … 522 522 if(!hdc) return FALSE; 523 523 #endif 524 524 525 525 if(len == 0) 526 526 { … … 740 740 { 741 741 #ifdef __WIN32OS2__ 742 dprintf(("TabbedTextOutA: %04x %d,%d % s %d\n", hdc, x, y, lpstr, count ));742 dprintf(("TabbedTextOutA: %04x %d,%d %.*s %d\n", hdc, x, y, count, lpstr, count )); 743 743 #else 744 744 TRACE("%04x %d,%d %s %d\n", hdc, x, y, debugstr_an(lpstr,count), count ); … … 762 762 acount = WideCharToMultiByte(codepage,0,str,count,NULL,0,NULL,NULL); 763 763 p = HeapAlloc( GetProcessHeap(), 0, acount ); 764 if(p == NULL) return 0; /* FIXME: is this the correct return on failure */ 764 if(p == NULL) return 0; /* FIXME: is this the correct return on failure */ 765 765 acount = WideCharToMultiByte(codepage,0,str,count,p,acount,NULL,NULL); 766 766 ret = TabbedTextOutA( hdc, x, y, p, acount, cTabStops, lpTabPos, nTabOrg ); … … 790 790 { 791 791 #ifdef __WIN32OS2__ 792 dprintf(("GetTabbedTextExtentA: %04x % s %d\n", hdc, lpstr, count ));792 dprintf(("GetTabbedTextExtentA: %04x %.*s %d\n", hdc, count, lpstr, count )); 793 793 #else 794 794 TRACE("%04x %s %d\n", hdc, debugstr_an(lpstr,count), count );
Note:
See TracChangeset
for help on using the changeset viewer.