Changeset 6319 for trunk/src


Ignore:
Timestamp:
Jul 13, 2001, 9:34:21 PM (24 years ago)
Author:
sandervl
Message:

StretchDIBits fix

File:
1 edited

Legend:

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

    r5967 r6319  
    1 /* $Id: blit.cpp,v 1.32 2001-06-11 15:57:15 sandervl Exp $ */
     1/* $Id: blit.cpp,v 1.33 2001-07-13 19:34:21 sandervl Exp $ */
    22
    33/*
     
    512512        newInfo.bmiHeader.biHeight = -newInfo.bmiHeader.biHeight;
    513513
     514        //TODO: doesn't work if memory is readonly!!
     515        ((BITMAPINFO *)info)->bmiHeader.biHeight = -info->bmiHeader.biHeight;
     516
    514517        char *newBits = (char *)malloc( lLineByte * lHeight );
    515518        if(newBits) {
     
    524527            free( newBits );
    525528        }
     529
     530        //TODO: doesn't work if memory is readonly!!
     531        ((BITMAPINFO *)info)->bmiHeader.biHeight = -info->bmiHeader.biHeight;
    526532        return rc;
    527533    } else {
Note: See TracChangeset for help on using the changeset viewer.