Ignore:
Timestamp:
Nov 13, 2001, 2:18:22 PM (24 years ago)
Author:
sandervl
Message:

workaround added for 32 bpp blitting with matrox display driver

File:
1 edited

Legend:

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

    r6603 r7327  
    1 /* $Id: dibitmap.cpp,v 1.27 2001-08-28 18:58:57 sandervl Exp $ */
     1/* $Id: dibitmap.cpp,v 1.28 2001-11-13 13:18:22 sandervl Exp $ */
    22
    33/*
     
    9696        bitfields[2] = (lpbmih->biCompression == BI_BITFIELDS) ?  *((DWORD *)lpbmi->bmiColors + 2) : 0x001f;
    9797        break;
     98    case 24:
    9899    case 32:
    99         bitfields[0] = (lpbmih->biCompression == BI_BITFIELDS) ? *(DWORD *)lpbmi->bmiColors : 0xff0000;
     100        bitfields[0] = (lpbmih->biCompression == BI_BITFIELDS) ? *(DWORD *)lpbmi->bmiColors        : 0xff0000;
    100101        bitfields[1] = (lpbmih->biCompression == BI_BITFIELDS) ?  *((DWORD *)lpbmi->bmiColors + 1) : 0xff00;
    101102        bitfields[2] = (lpbmih->biCompression == BI_BITFIELDS) ?  *((DWORD *)lpbmi->bmiColors + 2) : 0xff;
     
    361362        case 24:
    362363        case 32:
    363            ((DWORD*)(lpbi->bmiColors))[0] = 0x0000FF;
     364           ((DWORD*)(lpbi->bmiColors))[0] = 0xFF0000;
    364365           ((DWORD*)(lpbi->bmiColors))[1] = 0x00FF00;
    365            ((DWORD*)(lpbi->bmiColors))[2] = 0xFF0000;
     366           ((DWORD*)(lpbi->bmiColors))[2] = 0x0000FF;
    366367           break;
    367368        }
     
    448449        bitfields[2] = (pBitmapInfo->bmiHeader.biCompression == BI_BITFIELDS) ?  *((DWORD *)pBitmapInfo->bmiColors + 2) : 0x001f;
    449450        break;
     451
     452    case 24:
    450453    case 32:
    451454        bitfields[0] = (pBitmapInfo->bmiHeader.biCompression == BI_BITFIELDS) ? *(DWORD *)pBitmapInfo->bmiColors : 0xff0000;
Note: See TracChangeset for help on using the changeset viewer.