Ignore:
Timestamp:
Sep 13, 2000, 11:00:22 PM (25 years ago)
Author:
sandervl
Message:

StretchDIBits fix (wrong value returned by Open32)

File:
1 edited

Legend:

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

    r4127 r4254  
    1 /* $Id: blit.cpp,v 1.17 2000-08-30 18:05:24 sandervl Exp $ */
     1/* $Id: blit.cpp,v 1.18 2000-09-13 21:00:22 sandervl Exp $ */
    22
    33/*
     
    256256                               (PBITMAPINFO)infoLoc, DIB_RGB_COLORS, dwRop);
    257257
    258         if(rc != heightSrc) {
     258        //Open32 always returns height of bitmap (regardless of how many scanlines were copied)
     259        if(rc != heightSrc && rc != infoLoc->bmiHeader.biHeight) {
    259260                dprintf(("StretchDIBits failed with rc %x", rc));
    260261        }
    261262        else {
     263                rc = heightSrc;
     264
    262265                DIBSection *destdib = DIBSection::findHDC(hdc);
    263266                if(destdib) {
     
    277280                             widthSrc, heightSrc, (void *)bits,
    278281                             (PBITMAPINFO)info, wUsage, dwRop);
    279     if(rc != heightSrc) {
     282    //Open32 always returns height of bitmap (regardless of how many scanlines were copied)
     283    if(rc != heightSrc && rc != info->bmiHeader.biHeight) {
    280284        dprintf(("StretchDIBits failed with rc %x", rc));
    281285    }
    282     else {
     286    else
     287    {
     288        rc = heightSrc;
     289
    283290        DIBSection *destdib = DIBSection::findHDC(hdc);
    284291        if(destdib) {
Note: See TracChangeset for help on using the changeset viewer.