Ignore:
Timestamp:
May 29, 2001, 11:45:21 AM (24 years ago)
Author:
sandervl
Message:

Set/GetDIBColorTable fixes + SelectPalette hack

File:
1 edited

Legend:

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

    r5799 r5825  
    1 /* $Id: palette.cpp,v 1.8 2001-05-25 10:05:29 sandervl Exp $ */
     1/* $Id: palette.cpp,v 1.9 2001-05-29 09:45:21 sandervl Exp $ */
    22
    33/*
     
    8585  dprintf(("GDI32: SelectPalette (0x%08X, 0x%08X, 0x%08X)", hdc, hPalette, bForceBackground));
    8686  hPal = O32_SelectPalette(hdc, hPalette, bForceBackground);
    87   if(DIBSection::getSection() != NULL)
     87
     88  //hack for beyond compare buttons (+ other apps)
     89  //seems to select old palette into dc before unselecting dib section
     90  if(bForceBackground != -1 && DIBSection::getSection() != NULL)
    8891  {
    8992    DIBSection *dsect = DIBSection::findHDC(hdc);
Note: See TracChangeset for help on using the changeset viewer.