Changeset 3437 for trunk/src


Ignore:
Timestamp:
Apr 23, 2000, 5:34:10 PM (25 years ago)
Author:
sandervl
Message:

dib blit fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/dibsect.cpp

    r3418 r3437  
    1 /* $Id: dibsect.cpp,v 1.28 2000-04-18 11:11:52 sandervl Exp $ */
     1/* $Id: dibsect.cpp,v 1.29 2000-04-23 15:34:10 sandervl Exp $ */
    22
    33/*
     
    320320                dibinfo.dsBitfields[1] = (pbmi->biCompression == BI_BITFIELDS) ? *((DWORD *)pColors + 1) : 0x03e0;
    321321                dibinfo.dsBitfields[2] = (pbmi->biCompression == BI_BITFIELDS) ? *((DWORD *)pColors + 2) : 0x001f;
     322                if(dibinfo.dsBitfields[1] == 0x03e0) {
     323                        if(bmpBitsRGB565)
     324                                DosFreeMem(bmpBitsRGB565);
     325                        DosAllocMem((PPVOID)&bmpBitsRGB565, bmpsize*pbmi->biHeight, PAG_READ|PAG_WRITE|PAG_COMMIT);
     326                }
    322327                break;
    323328
     
    434439  point[2].x = nXsrc;
    435440  point[2].y = pOS2bmp->cy - nYsrc - nSrcHeight;
    436   point[3].x = nXsrc + nSrcWidth - 1;
    437   point[3].y = pOS2bmp->cy - nYsrc - 1;
     441  point[3].x = nXsrc + nSrcWidth;
     442  point[3].y = pOS2bmp->cy - nYsrc;
    438443
    439444  oldyinversion = GpiQueryYInversion(hps);
Note: See TracChangeset for help on using the changeset viewer.