mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-01 03:03:58 +00:00
render: Store and use all 16bpc of precision for solid pixels (v2.1)
This plumbs the full width color for solid pictures through to fb, exa, and glamor. External drivers and acceleration code may wish to make a similar change for sufficiently new servers. v2: Don't break ABI (Michel Dänzer) v2.1: Use the (correct) full color in fb too (Michel Dänzer) Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
9227237806
commit
8171d4c2d6
7 changed files with 29 additions and 29 deletions
|
|
@ -291,7 +291,9 @@ exaTryDriverSolidFill(PicturePtr pSrc,
|
|||
pixel = exaGetPixmapFirstPixel(pSrcPix);
|
||||
}
|
||||
else
|
||||
pixel = pSrc->pSourcePict->solidFill.color;
|
||||
miRenderColorToPixel(pSrc->pFormat,
|
||||
&pSrc->pSourcePict->solidFill.fullcolor,
|
||||
&pixel);
|
||||
|
||||
if (!exaGetRGBAFromPixel(pixel, &red, &green, &blue, &alpha,
|
||||
pSrc->pFormat, pSrc->format) ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue