Ignore:
Timestamp:
Jun 11, 2001, 5:57:15 PM (24 years ago)
Author:
sandervl
Message:

Added RGB555 conversion for CreateDIBitmap & SetDIBits

File:
1 edited

Legend:

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

    r5901 r5967  
    1 /* $Id: blit.cpp,v 1.31 2001-06-03 14:52:46 sandervl Exp $ */
     1/* $Id: blit.cpp,v 1.32 2001-06-11 15:57:15 sandervl Exp $ */
    22
    33/*
     
    142142    switch(info->bmiHeader.biBitCount) {
    143143    case 15:
    144     case 16:
     144    case 16: //Default if BI_BITFIELDS not set is RGB 555
    145145        bitfields[0] = (info->bmiHeader.biCompression == BI_BITFIELDS) ? *(DWORD *)info->bmiColors : 0x7c00;
    146146        bitfields[1] = (info->bmiHeader.biCompression == BI_BITFIELDS) ?  *((DWORD *)info->bmiColors + 1) : 0x03e0;
     
    436436    switch(info->bmiHeader.biBitCount) {
    437437    case 15:
    438     case 16:
     438    case 16: //Default if BI_BITFIELDS not set is RGB 555
    439439        bitfields[0] = (info->bmiHeader.biCompression == BI_BITFIELDS) ? *(DWORD *)info->bmiColors : 0x7c00;
    440440        bitfields[1] = (info->bmiHeader.biCompression == BI_BITFIELDS) ?  *((DWORD *)info->bmiColors + 1) : 0x03e0;
Note: See TracChangeset for help on using the changeset viewer.