Ignore:
Timestamp:
Oct 2, 2023, 11:34:35 PM (23 months ago)
Author:
gyoung
Message:

Remaining changes from merge with Lars 2.9 branch

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/common_functions/img_funcs.c

    r4 r104  
    11/*
    2   This file conatins functions for loading image files. 
     2  This file conatins functions for loading image files.
    33 */
    44
     
    6464    SIZEL         ImageSize;
    6565    ULONG         dwHeight, dwWidth;
    66     SHORT          wBitCount;
    6766    FOURCC        fccStorageSystem;
    6867    ULONG         dwPadBytes;
    6968    ULONG         dwRowBits;
    7069    ULONG         ulReturnCode;
    71     ULONG         dwReturnCode;
    72     HBITMAP       hbReturnCode;
    73     LONG          lReturnCode;
    7470    FOURCC        fccIOProc;
    7571    HDC           hdc;
     
    129125
    130126
    131     dwReturnCode = mmioQueryHeaderLength ( hmmio,
     127    ulReturnCode = mmioQueryHeaderLength ( hmmio,
    132128                                         (PLONG)&ulImageHeaderLength,
    133129                                           0L,
     
    163159    dwHeight = mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cy;
    164160    dwWidth = mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cx;
    165     wBitCount = mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cBitCount;
    166161    dwRowBits = dwWidth * mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cBitCount;
    167162    dwNumRowBytes = dwRowBits >> 3;
     
    203198        return(0L);
    204199      }
    205    
     200
    206201    /*
    207202    // ***************************************************
     
    226221                       (ULONG) MB_OK | MB_MOVEABLE |
    227222                       MB_ERROR );
    228 #endif   
     223#endif
    229224        DevCloseDC(hdc);
    230225        DosFreeMem(pRowBuffer);
     
    265260      Select the bitmap into the memory device context.
    266261      ***************************************************/
    267     hbReturnCode = GpiSetBitmap ( hps,
     262    ulReturnCode = GpiSetBitmap ( hps,
    268263                                  hbm );
    269264    /***************************************************************
     
    285280          *  it to work. Perhaps will get to it when time is available...
    286281          */
    287          lReturnCode = GpiSetBitmapBits ( hps,
     282         ulReturnCode = GpiSetBitmapBits ( hps,
    288283                                          (LONG) dwRowCount,
    289284                                          (LONG) 1,
     
    293288
    294289    /* Clean up */
    295     hbReturnCode = GpiSetBitmap ( hps,
     290    ulReturnCode = GpiSetBitmap ( hps,
    296291                                  NULLHANDLE );
    297292    ulReturnCode = mmioClose (hmmio, 0L);
     
    368363    ULONG         ulReturnCode;
    369364    ULONG ulBytesRead;
    370    
     365
    371366    /* Check file size */
    372367    if(SysQueryFileSize(pszFileName)==0)
    373368      return FALSE; /* File is empty at the moment, so return without reading. */
    374    
     369
    375370    ulReturnCode = mmioIdentifyFile ( pszFileName,
    376371                                      0L,
     
    436431                       &mmioinfo,
    437432                       MMIO_READ | MMIO_DENYWRITE | MMIO_NOIDENTIFY );
    438    
     433
    439434    if ( ! hmmio )
    440435    {
Note: See TracChangeset for help on using the changeset viewer.