winex11.drv: Check for incompatible bpps and negative widths.

This commit is contained in:
Damjan Jovanovic 2006-11-10 08:01:18 +02:00 committed by Alexandre Julliard
parent c6fa30a2cf
commit 5ec9d9b2f6
1 changed files with 10 additions and 0 deletions

View File

@ -1575,6 +1575,16 @@ static BOOL X11DRV_ClientSideDIBCopy( X11DRV_PDEVICE *physDevSrc, INT xSrc, INT
FIXME("potential optimization: client-side compressed DIB copy\n");
return FALSE;
}
if (srcDib.dsBm.bmBitsPixel != dstDib.dsBm.bmBitsPixel)
{
FIXME("potential optimization: pixel format conversion\n");
return FALSE;
}
if (srcDib.dsBmih.biWidth < 0 || dstDib.dsBmih.biWidth < 0)
{
FIXME("negative widths not yet implemented\n");
return FALSE;
}
switch (dstDib.dsBm.bmBitsPixel)
{