Changeset 1067 for trunk/dll/dirsize.c


Ignore:
Timestamp:
Jul 14, 2008, 2:53:14 AM (17 years ago)
Author:
Gregg Young
Message:

Removed unnecessary strlens from WM_DRAWITEM; Streamlined FillInRecSizes; Removed spurious Fortify_Enterscope (perhaps fixing strlens trap); Minor cleanup of graph box appearence.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dirsize.c

    r1064 r1067  
    311311    CHAR szBuf[CCHMAXPATH + 320];
    312312
    313 #   ifdef FORTIFY
    314     Fortify_EnterScope();
    315 #    endif
    316 
    317313    // cbFile = currect directory usage in bytes
    318314    // easize = subdirectory usage in bytes
     
    376372    attrib = CMA_FIRST;
    377373  pci = (PCNRITEM) WinSendMsg(hwndCnr, CM_QUERYRECORD, MPFROMP(pci),
    378                               MPFROM2SHORT(attrib, CMA_ITEMORDER));
     374                              MPFROM2SHORT(attrib, CMA_ITEMORDER));
    379375  while (pci && (INT) pci != -1) {
    380376    if (*pchStopFlag)
     
    684680
    685681              // Calculate nominal graph box height based on font size
    686               GpiQueryTextBox(oi->hps, strlen(pci->pszFileName),
     682              GpiQueryTextBox(oi->hps, p - pci->pszFileName,
    687683                              pci->pszFileName, TXTBOX_COUNT, aptl);
    688684              boxHeight = aptl[TXTBOX_TOPRIGHT].y - aptl[TXTBOX_BOTTOMRIGHT].y;
     
    697693              ptl.y = yBottom + boxHeight + 6;  // 03 Aug 07 SHL
    698694              // GpiMove(oi->hps, &ptl);
    699               GpiCharStringAt(oi->hps, &ptl, strlen(pci->pszFileName),
     695              GpiCharStringAt(oi->hps, &ptl, p - pci->pszFileName,
    700696                              pci->pszFileName);
    701697
     
    743739              ptl.y = yBottom + boxHeight;
    744740              GpiMove(oi->hps, &ptl);
    745               ptl.x = oi->rclItem.xLeft + 203;
     741              ptl.x = oi->rclItem.xLeft + 201;
    746742              GpiLine(oi->hps, &ptl);
    747743              ptl.y = yBottom + boxHeight - 2;
Note: See TracChangeset for help on using the changeset viewer.