disable NtGdiPatBlt code, in some case it can cause random crash and have some graphic glichters it need be rewrite.

svn path=/trunk/; revision=33881
This commit is contained in:
Magnus Olsen 2008-06-07 07:58:39 +00:00
parent 9199d4af30
commit 66efb44d68

View file

@ -1069,18 +1069,24 @@ NtGdiPatBlt(
INT Height,
DWORD ROP)
{
/* FIXME PatBlt code is wrong, we using NtGdiBitBlt to workaround this bug for now, like random crash, and so on */
#if 0
PGDIBRUSHOBJ BrushObj;
DC *dc;
PDC_ATTR Dc_Attr;
BOOL UsesSource = ROP3_USES_SOURCE(ROP);
BOOL ret;
#endif
BOOL UsesSource = ROP3_USES_SOURCE(ROP);
if (UsesSource)
{
/* in this case we call on GdiMaskBlt */
return NtGdiMaskBlt(hDC, XLeft, YLeft, Width, Height, 0,0,0,0,0,0,ROP,0);
}
return NtGdiBitBlt( hDC, XLeft, YLeft, Width, Height, 0, 0, 0, ROP, 0, 0);
#if 0
dc = DC_LockDc(hDC);
if (dc == NULL)
{
@ -1117,6 +1123,7 @@ NtGdiPatBlt(
DC_UnlockDc(dc);
return ret;
#endif
}
BOOL STDCALL