Changeset 104 for trunk/common_functions/img_funcs.c
- Timestamp:
- Oct 2, 2023, 11:34:35 PM (23 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/v2.9 merged eligible /branches/v2.9_Lars merged eligible
-
Property svn:mergeinfo
set to
-
trunk/common_functions/img_funcs.c
r4 r104 1 1 /* 2 This file conatins functions for loading image files. 2 This file conatins functions for loading image files. 3 3 */ 4 4 … … 64 64 SIZEL ImageSize; 65 65 ULONG dwHeight, dwWidth; 66 SHORT wBitCount;67 66 FOURCC fccStorageSystem; 68 67 ULONG dwPadBytes; 69 68 ULONG dwRowBits; 70 69 ULONG ulReturnCode; 71 ULONG dwReturnCode;72 HBITMAP hbReturnCode;73 LONG lReturnCode;74 70 FOURCC fccIOProc; 75 71 HDC hdc; … … 129 125 130 126 131 dwReturnCode = mmioQueryHeaderLength ( hmmio,127 ulReturnCode = mmioQueryHeaderLength ( hmmio, 132 128 (PLONG)&ulImageHeaderLength, 133 129 0L, … … 163 159 dwHeight = mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cy; 164 160 dwWidth = mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cx; 165 wBitCount = mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cBitCount;166 161 dwRowBits = dwWidth * mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cBitCount; 167 162 dwNumRowBytes = dwRowBits >> 3; … … 203 198 return(0L); 204 199 } 205 200 206 201 /* 207 202 // *************************************************** … … 226 221 (ULONG) MB_OK | MB_MOVEABLE | 227 222 MB_ERROR ); 228 #endif 223 #endif 229 224 DevCloseDC(hdc); 230 225 DosFreeMem(pRowBuffer); … … 265 260 Select the bitmap into the memory device context. 266 261 ***************************************************/ 267 hbReturnCode = GpiSetBitmap ( hps,262 ulReturnCode = GpiSetBitmap ( hps, 268 263 hbm ); 269 264 /*************************************************************** … … 285 280 * it to work. Perhaps will get to it when time is available... 286 281 */ 287 lReturnCode = GpiSetBitmapBits ( hps,282 ulReturnCode = GpiSetBitmapBits ( hps, 288 283 (LONG) dwRowCount, 289 284 (LONG) 1, … … 293 288 294 289 /* Clean up */ 295 hbReturnCode = GpiSetBitmap ( hps,290 ulReturnCode = GpiSetBitmap ( hps, 296 291 NULLHANDLE ); 297 292 ulReturnCode = mmioClose (hmmio, 0L); … … 368 363 ULONG ulReturnCode; 369 364 ULONG ulBytesRead; 370 365 371 366 /* Check file size */ 372 367 if(SysQueryFileSize(pszFileName)==0) 373 368 return FALSE; /* File is empty at the moment, so return without reading. */ 374 369 375 370 ulReturnCode = mmioIdentifyFile ( pszFileName, 376 371 0L, … … 436 431 &mmioinfo, 437 432 MMIO_READ | MMIO_DENYWRITE | MMIO_NOIDENTIFY ); 438 433 439 434 if ( ! hmmio ) 440 435 {
Note:
See TracChangeset
for help on using the changeset viewer.