Changeset 9609 for trunk/src


Ignore:
Timestamp:
Jan 4, 2003, 2:45:10 PM (23 years ago)
Author:
sandervl
Message:

Removed broken handling of TA_RIGHT in TextOut

File:
1 edited

Legend:

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

    r8760 r9609  
    1 /* $Id: text.cpp,v 1.30 2002-06-25 07:21:03 sandervl Exp $ */
     1/* $Id: text.cpp,v 1.31 2003-01-04 13:45:10 sandervl Exp $ */
    22
    33/*
     
    183183  LONG pmHAlign,pmVAlign;
    184184
     185#if 0
     186  //SvL: This code is broken. TODO: Investigate
    185187  //CB: TA_RIGHT not supported by PM, only TA_CENTER and TA_LEFT
    186188  if ((align & 0x6) == TA_RIGHT)
    187189  {
     190    BOOL rc;
    188191    PPOINTLOS2 pts = (PPOINTLOS2)malloc((cbCount+1)*sizeof(POINTLOS2));
    189 
    190     OSLibGpiQueryCharStringPosAt(pHps,&ptl,flOptions,cbCount,lpszString,lpDx,pts);
    191     ptl.x -= pts[cbCount].x-pts[0].x;
     192 
     193    rc = OSLibGpiQueryCharStringPosAt(pHps,&ptl,flOptions & CHSOS_VECTOR,cbCount,lpszString,lpDx,pts);
     194    if(rc) {
     195        for(int i=0;i<cbCount+1;i++) {
     196            dprintf(("OSLibGpiQueryCharStringPosAt %d (%d,%d)", pts[i].x, pts[i].y));
     197        }
     198        ptl.x -= pts[cbCount].x-pts[0].x;
     199    }
    192200    free(pts);
    193201  }
     202#endif
    194203
    195204  if (lprc && ((align & 0x18) == TA_BASELINE))
Note: See TracChangeset for help on using the changeset viewer.