comparison gui/skin/font.c @ 32832:d3c28b47ffcd

Add alpha channel value to the ARGB initialization constant for a pixel in the image (although it is zero). (This clarifies the 32-bit / 4 bytes nature of the image.)
author ib
date Thu, 17 Feb 2011 10:17:45 +0000
parents acc4bb6f55e3
children 19cc523b8e15
comparison
equal deleted inserted replaced
32831:acc4bb6f55e3 32832:d3c28b47ffcd
259 } 259 }
260 260
261 obuf=(uint32_t *)item->Bitmap.Image; 261 obuf=(uint32_t *)item->Bitmap.Image;
262 ibuf=(uint32_t *)Fonts[id]->Bitmap.Image; 262 ibuf=(uint32_t *)Fonts[id]->Bitmap.Image;
263 263
264 for ( i=0;i < item->Bitmap.ImageSize / 4;i++ ) obuf[i]=0xff00ff; 264 for ( i=0;i < item->Bitmap.ImageSize / 4;i++ ) obuf[i]=0x00ff00ff;
265 265
266 if ( tw <= iw ) 266 if ( tw <= iw )
267 { 267 {
268 switch ( item->align ) 268 switch ( item->align )
269 { 269 {