Ignore:
Timestamp:
Feb 10, 2000, 12:34:30 AM (26 years ago)
Author:
sandervl
Message:

fix 1 & 4 bits alignment

File:
1 edited

Legend:

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

    r2600 r2706  
    1 /* $Id: dibsect.cpp,v 1.15 2000-02-02 23:45:06 sandervl Exp $ */
     1/* $Id: dibsect.cpp,v 1.16 2000-02-09 23:34:30 sandervl Exp $ */
    22
    33/*
     
    5858  {
    5959        case 1:
    60                 bmpsize /= 8;
     60                bmpsize = ((bmpsize + 31) & ~31) / 8;
    6161                os2bmpsize += ((1 << pbmi->biBitCount)-1)*sizeof(RGB2);
    6262                break;
    6363        case 4:
    64                 bmpsize /= 2;
     64                bmpsize = ((bmpsize + 7) & ~7) / 2;
    6565                os2bmpsize += ((1 << pbmi->biBitCount)-1)*sizeof(RGB2);
    6666                break;
     
    202202  {
    203203    case 1:
    204       bmpsize /= 8;
     204      bmpsize = ((bmpsize + 31) & ~31) / 8;
    205205      palsize = ((1 << pbmi->biBitCount))*sizeof(RGB2);
    206206      os2bmpsize += palsize;
    207207      break;
    208208    case 4:
    209       bmpsize /= 2;
     209      bmpsize = ((bmpsize + 7) & ~7) / 2;
    210210      palsize = ((1 << pbmi->biBitCount))*sizeof(RGB2);
    211211      os2bmpsize += palsize;
Note: See TracChangeset for help on using the changeset viewer.