Damjan Jovanovic : winex11.drv:
Check for incompatible bpps and negative widths.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Nov 10 05:43:53 CST 2006
Module: wine
Branch: master
Commit: 5ec9d9b2f6e46c921c27445d4cf48141a0a3aaa0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5ec9d9b2f6e46c921c27445d4cf48141a0a3aaa0
Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date: Fri Nov 10 08:01:18 2006 +0200
winex11.drv: Check for incompatible bpps and negative widths.
---
dlls/winex11.drv/bitblt.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/bitblt.c b/dlls/winex11.drv/bitblt.c
index c1746fc..a1228d3 100644
--- a/dlls/winex11.drv/bitblt.c
+++ b/dlls/winex11.drv/bitblt.c
@@ -1575,6 +1575,16 @@ static BOOL X11DRV_ClientSideDIBCopy( X1
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)
{
More information about the wine-cvs
mailing list