winex11.drv: Check for incompatible bpps and negative widths.
This commit is contained in:
parent
c6fa30a2cf
commit
5ec9d9b2f6
|
@ -1575,6 +1575,16 @@ static BOOL X11DRV_ClientSideDIBCopy( X11DRV_PDEVICE *physDevSrc, INT xSrc, INT
|
||||||
FIXME("potential optimization: client-side compressed DIB copy\n");
|
FIXME("potential optimization: client-side compressed DIB copy\n");
|
||||||
return FALSE;
|
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)
|
switch (dstDib.dsBm.bmBitsPixel)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue