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/gdi32.cpp

    r5044 r5390  
    1 /* $Id: gdi32.cpp,v 1.66 2001-02-01 18:01:52 sandervl Exp $ */
     1/* $Id: gdi32.cpp,v 1.67 2001-03-27 20:47:53 sandervl Exp $ */
    22
    33/*
     
    184184  }
    185185  SetLastError(ERROR_SUCCESS);
     186
     187  DIBSection *dsect = DIBSection::findHDC(hdc);
     188  if(dsect)
     189  {
     190      //remove previously selected dibsection
     191      dprintf(("DeleteDC %x, unselect DIB section %x", hdc, dsect->GetBitmapHandle()));
     192      dsect->UnSelectDIBObject();
     193  }
     194
    186195  //Must call ReleaseDC for window dcs
    187196  if(pHps->hdcType == TYPE_1) {
     
    12471256BOOL WIN32API GdiComment(HDC hdc, UINT cbSize, CONST BYTE *lpData)
    12481257{
    1249   dprintf(("GDI32: GdiComment, not implemented (TRUE)\n"));
    1250   return(TRUE);
     1258  dprintf(("GDI32: GdiComment %x %d %x NOT IMPLEMENTED", hdc, cbSize, lpData));
     1259//  return O32_GdiComment(hdc, cbSize, lpData);
     1260  return TRUE;
    12511261}
    12521262//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.