[ros-bugs] [Bug 4070] CreateHatchBrush error draw invert Pattern if 1bpp

ReactOS.Bugzilla at www.reactos.org ReactOS.Bugzilla at www.reactos.org
Tue Jan 27 09:52:04 CET 2009


http://www.reactos.org/bugzilla/show_bug.cgi?id=4070





--- Comment #3 from bolt <bstsoft at narod.ru>  2009-01-27 09:52:02 CET ---
Created an attachment (id=3468)
 --> (http://www.reactos.org/bugzilla/attachment.cgi?id=3468)
Modifi xlate.c

Sorry only should only xlate.c
Then it is necessary to make changes in xlate.c
mono by definition it 
 bit 0 = Background
 bit 1 = ForegroundColor

in to IntEngCreateSrcMonoXlate
   XlateObj->pulXlate[1] = ShiftAndMask(XlateGDI, BackgroundColor);
   XlateObj->pulXlate[0] = ShiftAndMask(XlateGDI, ForegroundColor);
replace
   XlateObj->pulXlate[1] = ShiftAndMask(XlateGDI, BackgroundColor);
   XlateObj->pulXlate[0] = ShiftAndMask(XlateGDI, ForegroundColor);

and

into IntCreateXlateForBlt
XlateObj = IntEngCreateSrcMonoXlate(DestPalette,
((ULONG*)ppal->IndexedColors)[0], ((ULONG*)ppal->IndexedColors)[1]);
replace
XlateObj = IntEngCreateSrcMonoXlate(DestPalette,
((ULONG*)ppal->IndexedColors)[1], ((ULONG*)ppal->IndexedColors)[0]);
and
XlateObj = IntEngCreateSrcMonoXlate(DestPalette, pDc_Attr->crForegroundClr,
pDc_Attr->crBackgroundClr);
replace
XlateObj = IntEngCreateSrcMonoXlate(DestPalette, pDc_Attr->crBackgroundClr,
pDc_Attr->crForegroundClr);

Only in the cases test 100% Windows & 100% ReactOS


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Ros-bugs mailing list