mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 16:35:49 +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
1 changed files with 8 additions and 1 deletions
|
@ -1069,18 +1069,24 @@ NtGdiPatBlt(
|
||||||
INT Height,
|
INT Height,
|
||||||
DWORD ROP)
|
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;
|
PGDIBRUSHOBJ BrushObj;
|
||||||
DC *dc;
|
DC *dc;
|
||||||
PDC_ATTR Dc_Attr;
|
PDC_ATTR Dc_Attr;
|
||||||
BOOL UsesSource = ROP3_USES_SOURCE(ROP);
|
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
BOOL UsesSource = ROP3_USES_SOURCE(ROP);
|
||||||
if (UsesSource)
|
if (UsesSource)
|
||||||
{
|
{
|
||||||
/* in this case we call on GdiMaskBlt */
|
/* in this case we call on GdiMaskBlt */
|
||||||
return NtGdiMaskBlt(hDC, XLeft, YLeft, Width, Height, 0,0,0,0,0,0,ROP,0);
|
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);
|
dc = DC_LockDc(hDC);
|
||||||
if (dc == NULL)
|
if (dc == NULL)
|
||||||
{
|
{
|
||||||
|
@ -1117,6 +1123,7 @@ NtGdiPatBlt(
|
||||||
DC_UnlockDc(dc);
|
DC_UnlockDc(dc);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL STDCALL
|
BOOL STDCALL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue