Ignore:
Timestamp:
Jun 1, 2000, 9:00:05 PM (25 years ago)
Author:
sandervl
Message:

added more logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/text.cpp

    r3481 r3648  
    1 /* $Id: text.cpp,v 1.9 2000-05-02 20:49:58 sandervl Exp $ */
     1/* $Id: text.cpp,v 1.10 2000-06-01 19:00:05 sandervl Exp $ */
    22
    33/*
     
    576576  if (!pHps || (cbCount < 0) || ((lpszString == NULL) && (cbCount != 0)))
    577577  {
    578     SetLastError(ERROR_INVALID_HANDLE);
    579     return FALSE;
     578        dprintf(("InternalTextOutA: invalid parameter"));
     579        SetLastError(ERROR_INVALID_HANDLE);
     580        return FALSE;
    580581  }
    581582
    582583  if (cbCount > 512)
    583584  {
    584     SetLastError(ERROR_INVALID_PARAMETER);
    585     return FALSE;
     585        dprintf(("InternalTextOutA: invalid parameter cbCount"));
     586        SetLastError(ERROR_INVALID_PARAMETER);
     587        return FALSE;
    586588  }
    587589  if (fuOptions & ~((UINT)(ETO_CLIPPED | ETO_OPAQUE)))
    588590  {
    589     //ETO_GLYPH_INDEX, ETO_RTLLEADING, ETO_NUMERICSLOCAL, ETO_NUMERICSLATIN, ETO_IGNORELANGUAGE, ETO_PDY  are ignored
    590     return TRUE;
     591        dprintf(("InternalTextOutA: invalid fuOptions"));
     592        //ETO_GLYPH_INDEX, ETO_RTLLEADING, ETO_NUMERICSLOCAL, ETO_NUMERICSLATIN, ETO_IGNORELANGUAGE, ETO_PDY  are ignored
     593        return TRUE;
    591594  }
    592595
     
    600603      if (excludeBottomRightPoint(pHps,(PPOINTLOS2)&pmRect) == 0)
    601604      {
     605        dprintf(("InternalTextOutA: excludeBottomRightPoint returned 0"));
    602606        return TRUE;
    603607      }
     
    606610      if (fuOptions & ETO_OPAQUE)  flOptions |= CHSOS_OPAQUE;
    607611    }
    608   } else
     612  }
     613  else
    609614  {
    610615    if (fuOptions)
    611616    {
    612       SetLastError(ERROR_INVALID_HANDLE);
    613       return FALSE;
     617        dprintf(("InternalTextOutA: ERROR_INVALID_HANDLE"));
     618        SetLastError(ERROR_INVALID_HANDLE);
     619        return FALSE;
    614620    }
    615621  }
     
    619625    if (fuOptions & ETO_OPAQUE)
    620626    {
    621       lpszString = " ";
    622       cbCount = 1;
    623       flOptions |= CHSOS_CLIP;
    624     } else return TRUE;
     627        lpszString = " ";
     628        cbCount = 1;
     629        flOptions |= CHSOS_CLIP;
     630    }
     631    else {
     632        dprintf(("InternalTextOutA: cbCount == 0"));
     633        return TRUE;
     634    }
    625635  }
    626636  if (lpDx)
     
    633643
    634644    flOptions |= CHSOS_LEAVEPOS;
    635   } else OSLibGpiQueryCurrentPosition(pHps,&ptl);
     645  }
     646  else OSLibGpiQueryCurrentPosition(pHps,&ptl);
    636647
    637648  UINT align = GetTextAlign(hdc);
     
    663674    OSLibGpiSetTextAlignment(pHps,pmHAlign,pmVAlign);
    664675
    665   if (hits == GPIOS_ERROR)
    666     return FALSE;
     676  if(hits == GPIOS_ERROR) {
     677        dprintf(("InternalTextOutA: OSLibGpiCharStringPosAt returned GPIOS_ERROR"));
     678        return FALSE;
     679  }
    667680
    668681  if (getAlignUpdateCP(pHps))
Note: See TracChangeset for help on using the changeset viewer.