Changeset 8760 for trunk/src


Ignore:
Timestamp:
Jun 25, 2002, 9:21:03 AM (23 years ago)
Author:
sandervl
Message:

logging updates

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:01 sandervl Exp $ */
     1/* $Id: text.cpp,v 1.30 2002-06-25 07:21:03 sandervl Exp $ */
    22
    33/*
     
    282282BOOL WIN32API TextOutA(HDC hdc,int nXStart,int nYStart,LPCSTR lpszString,int cbString)
    283283{
    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));
    285285   return InternalTextOutA(hdc,nXStart,nYStart,0,NULL,lpszString,cbString,NULL,FALSE);
    286286}
     
    289289BOOL WIN32API TextOutW(HDC hdc,int nXStart,int nYStart,LPCWSTR lpszString,int cbString)
    290290{
    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));
    299292   return InternalTextOutW(hdc,nXStart,nYStart,0,NULL,lpszString,cbString,NULL,FALSE);
    300293}
     
    337330{
    338331#if 1
    339    dprintf(("GDI32: GetTextExtentPointA %x %*s %d", hdc, cbString, lpsz, cbString));
     332   dprintf(("GDI32: GetTextExtentPointA %x %.*s %d", hdc, cbString, lpsz, cbString));
    340333
    341334   if(lpsz == NULL || cbString < 0 || lpsSize == NULL)
     
    468461   }
    469462
    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));
    471464
    472465   astring = (char *)malloc((cbString+1)*sizeof(WCHAR));
Note: See TracChangeset for help on using the changeset viewer.