Ignore:
Timestamp:
Apr 16, 2002, 8:27:19 AM (23 years ago)
Author:
umoeller
Message:

Misc changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/shapewin.c

    r142 r154  
    13551355    psb->hab = hab;
    13561356
    1357     psb->hdc = DevOpenDC(hab, OD_MEMORY, "*", 0, NULL, NULLHANDLE);
    1358     if (psb->hdc)
     1357    if (psb->hdc = DevOpenDC(hab, OD_MEMORY, "*", 0, NULL, NULLHANDLE))
    13591358    {
    13601359        siz.cx = siz.cy = 0;
    1361         psb->hps = GpiCreatePS(hab, psb->hdc, &siz,
    1362                 PU_PELS | GPIF_DEFAULT | GPIT_MICRO | GPIA_ASSOC);
    1363 
    1364         if (psb->hps)
     1360        if (psb->hps = GpiCreatePS(hab,
     1361                                   psb->hdc,
     1362                                   &siz,
     1363                                   PU_PELS | GPIF_DEFAULT | GPIT_MICRO | GPIA_ASSOC))
    13651364        {
    13661365            if (pszBitmapFile)
    13671366            {
    13681367                // load bitmap file
    1369                 ULONG ulError;
    1370                 psb->hbm = gpihLoadBitmapFile(psb->hps,
    1371                                               pszBitmapFile,
    1372                                               &ulError);
    1373             } else
     1368                if (gpihLoadBitmapFile(&psb->hbm,
     1369                                       psb->hps,
     1370                                       pszBitmapFile))
     1371                    psb->hbm = NULLHANDLE;
     1372            }
     1373            else
    13741374                // load resource bitmap
    13751375                psb->hbm = GpiLoadBitmap(psb->hps,
Note: See TracChangeset for help on using the changeset viewer.