register ssize_t
x;
- RGBTRIPLE
+ RGBQUAD
*p;
ssize_t
bmi.bmiHeader.biWidth=(LONG) screen->columns;
bmi.bmiHeader.biHeight=(-1)*(LONG) screen->rows;
bmi.bmiHeader.biPlanes=1;
- bmi.bmiHeader.biBitCount=24;
+ bmi.bmiHeader.biBitCount=32;
bmi.bmiHeader.biCompression=BI_RGB;
bitmap=CreateDIBSection(hDC,&bmi,DIB_RGB_COLORS,(void **) &p,NULL,0);
if (bitmap == (HBITMAP) NULL)
break;
for (x=0; x < (ssize_t) screen->columns; x++)
{
- SetPixelRed(image,ScaleCharToQuantum(p->rgbtRed),q);
- SetPixelGreen(image,ScaleCharToQuantum(p->rgbtGreen),q);
- SetPixelBlue(image,ScaleCharToQuantum(p->rgbtBlue),q);
+ SetPixelRed(image,ScaleCharToQuantum(p->rgbRed),q);
+ SetPixelGreen(image,ScaleCharToQuantum(p->rgbGreen),q);
+ SetPixelBlue(image,ScaleCharToQuantum(p->rgbBlue),q);
SetPixelAlpha(image,OpaqueAlpha,q);
p++;
q+=GetPixelChannels(image);