Changeset 411 for trunk/src


Ignore:
Timestamp:
Aug 4, 1999, 3:10:14 PM (26 years ago)
Author:
sandervl
Message:

Icon conversion bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/pe2lx/icon.cpp

    r349 r411  
    1 /* $Id: icon.cpp,v 1.4 1999-07-20 17:50:19 sandervl Exp $ */
     1/* $Id: icon.cpp,v 1.5 1999-08-04 13:10:14 sandervl Exp $ */
    22
    33/*
     
    5252  //SvL: 28-09-'98: only for <= 8
    5353  if(bmpHdr->biBitCount <= 8)
    54         rgbsize = (1<<bmpHdr->biBitCount)*sizeof(RGB);
     54        rgbsize = (1<<bmpHdr->biBitCount)*sizeof(RGB2);
    5555  else  rgbsize = 0;
    5656
     
    114114  os2rgb                 = (RGB2 *)(iconhdr+1);
    115115  memset(os2rgb, 0, sizeof(RGB2));
    116   memset(os2rgb+1, 0xff, sizeof(RGB)); //not reserved byte
     116  memset(os2rgb+1, 0xff, sizeof(RGB2)); //not reserved byte
    117117  iconhdr2               = (BITMAPFILEHEADER2 *)(os2rgb+2);
    118118  iconhdr2->usType       = BFT_COLORICON;
Note: See TracChangeset for help on using the changeset viewer.