mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +00:00
[WIN32SS:GDI]
Convert COLOR16 values to byte range before calling XLATEOBJ_iXlate. This fixes gradient colors in some applications, as for example in Code::Blocks. Patch by Vort. This is a fix for code written in revision r8117, so old !! CORE-8652 #comment Committed in r69430, thanks guys! svn path=/trunk/; revision=69430
This commit is contained in:
parent
161dd3557d
commit
9fef17180f
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ IntEngGradientFillRect(
|
|||
do
|
||||
{
|
||||
RECTL FillRect;
|
||||
ULONG Color = XLATEOBJ_iXlate(pxlo, RGB(v1->Red, v1->Green, v1->Blue));
|
||||
ULONG Color = XLATEOBJ_iXlate(pxlo, RGB(v1->Red >> 8, v1->Green >> 8, v1->Blue >> 8));
|
||||
|
||||
EnumMore = CLIPOBJ_bEnum(pco, (ULONG) sizeof(RectEnum), (PVOID) &RectEnum);
|
||||
for (i = 0; i < RectEnum.c && RectEnum.arcl[i].top <= rcSG.bottom; i++)
|
||||
|
|
Loading…
Reference in a new issue