mirror of
https://github.com/reactos/reactos.git
synced 2024-08-12 14:16:30 +00:00
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:
parent
9199d4af30
commit
66efb44d68
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue