Changeset 762 for trunk/dll/dirsize.c


Ignore:
Timestamp:
Aug 5, 2007, 1:19:21 AM (18 years ago)
Author:
Steven Levine
Message:

Use two pass logic to free CNRITEMs and ARCITEMs
Rename pszLongname to pszLongName
More compare directories rework
Make directory sizes item draw placement deterministic - how did it ever work?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dirsize.c

    r761 r762  
    185185  // fixme to know why - it appears to be indirectly saving length, but why?
    186186  pci->pszDisplayName = pci->pszFileName + strlen(pci->pszFileName);
    187   pci->pszLongname = pci->pszFileName;          // fixme to be sure?
     187  pci->pszLongName = pci->pszFileName;          // fixme to be sure?
    188188  pci->rc.pszIcon = pci->pszFileName;
    189189  pci->rc.flRecordAttr |= CRA_RECORDREADONLY;
     
    304304        }
    305305        // Need unique buffer 23 Jul 07 SHL
    306         pci->pszLongname = xmalloc(2, pszSrcFile, __LINE__);
    307         pci->pszLongname[0] = 0;                // Make null string
    308         pci->pszLongname[1] = 1;                // Flag root - hack cough
     306        pci->pszLongName = xmalloc(2, pszSrcFile, __LINE__);
     307        pci->pszLongName[0] = 0;                // Make null string
     308        pci->pszLongName[1] = 1;                // Flag root - hack cough
    309309      }
    310310      else
     
    699699              /* fill box with graph bar, flags is integer % */
    700700              if (pci->flags) {
    701                 if (*(pci->pszLongname + 1) == 1)       /* is root record */
     701                if (*(pci->pszLongName + 1) == 1)       /* is root record */
    702702                  GpiSetColor(oi->hps, CLR_DARKGREEN);
    703703                else
     
    711711
    712712                /* draw highlights and shadows on graph */
    713                 if (*(pci->pszLongname + 1) == 1)
     713                if (*(pci->pszLongName + 1) == 1)
    714714                  GpiSetColor(oi->hps, CLR_GREEN);
    715715                else
     
    728728                ptl.x = oi->rclItem.xLeft + pci->flags;
    729729                GpiLine(oi->hps, &ptl);
    730                 if (*(pci->pszLongname + 1) != 1) {
     730                if (*(pci->pszLongName + 1) != 1) {
    731731                  GpiSetColor(oi->hps, CLR_DARKRED);
    732732                  ptl.x = oi->rclItem.xLeft + 2;
Note: See TracChangeset for help on using the changeset viewer.