Changeset 6692 for trunk/src


Ignore:
Timestamp:
Sep 10, 2001, 1:02:41 PM (24 years ago)
Author:
sandervl
Message:

DPtoLP & StretchDIBits fixes

Location:
trunk/src/gdi32
Files:
2 edited

Legend:

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

    r6319 r6692  
    1 /* $Id: blit.cpp,v 1.33 2001-07-13 19:34:21 sandervl Exp $ */
     1/* $Id: blit.cpp,v 1.34 2001-09-10 11:02:40 sandervl Exp $ */
    22
    33/*
     
    376376{
    377377 INT rc;
    378  DWORD bitfields[3];
     378 DWORD bitfields[3], compression = 0;
    379379 WORD *newbits = NULL;
    380380
     
    466466        bits = newbits;
    467467    }
     468    //SvL: Ignore BI_BITFIELDS type (SetDIBitsToDevice fails otherwise)
     469    if(info->bmiHeader.biCompression == BI_BITFIELDS) {
     470        ((BITMAPINFO *)info)->bmiHeader.biCompression = 0;
     471        compression = BI_BITFIELDS;
     472
     473    }
    468474
    469475    rc = O32_StretchDIBits(hdc, xDst, yDst, widthDst, heightDst, xSrc, ySrc,
     
    471477                             (PBITMAPINFO)info, wUsage, dwRop);
    472478
     479    if(compression == BI_BITFIELDS) {
     480        ((BITMAPINFO *)info)->bmiHeader.biCompression = BI_BITFIELDS;
     481    }
    473482    if(newbits) free(newbits);
    474483
  • trunk/src/gdi32/transform.cpp

    r6411 r6692  
    1 /* $Id: transform.cpp,v 1.6 2001-07-30 12:00:38 sandervl Exp $ */
     1/* $Id: transform.cpp,v 1.7 2001-09-10 11:02:41 sandervl Exp $ */
    22
    33/*
     
    6868{
    6969    BOOL ret;
    70     DWORD hdcwidth, hdcheight;
     70    LONG hdcwidth, hdcheight;
    7171    pDCData pHps;
    7272
Note: See TracChangeset for help on using the changeset viewer.