Ignore:
Timestamp:
Mar 27, 2001, 10:47:53 PM (24 years ago)
Author:
sandervl
Message:

DeleteDC check for DIB section + SelectObject fixes

File:
1 edited

Legend:

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

    r5346 r5390  
    1 /* $Id: dibsect.cpp,v 1.47 2001-03-21 12:31:36 sandervl Exp $ */
     1/* $Id: dibsect.cpp,v 1.48 2001-03-27 20:47:52 sandervl Exp $ */
    22
    33/*
     
    3939//******************************************************************************
    4040DIBSection::DIBSection(BITMAPINFOHEADER_W *pbmi, char *pColors, DWORD iUsage, DWORD hSection, DWORD dwOffset, DWORD handle, int fFlip)
    41                 : bmpBits(NULL), pOS2bmp(NULL), next(NULL), bmpBitsDblBuffer(NULL)
     41                : bmpBits(NULL), pOS2bmp(NULL), next(NULL), bmpBitsDblBuffer(NULL),
     42                  hdc(0), hwndParent(0)
    4243{
    4344 int  palsize=0;
     
    723724//******************************************************************************
    724725//******************************************************************************
    725 DIBSection *DIBSection::find(DWORD handle)
     726DIBSection *DIBSection::findObj(HANDLE handle)
    726727{
    727728 DIBSection *dsect = section;
     
    759760//******************************************************************************
    760761//******************************************************************************
    761 void DIBSection::deleteSection(DWORD handle)
    762 {
    763  DIBSection *dsect = find(handle);
     762void DIBSection::deleteSection(HANDLE handle)
     763{
     764 DIBSection *dsect = findObj(handle);
    764765
    765766  if(dsect)
Note: See TracChangeset for help on using the changeset viewer.