diff options
author | Adam Jackson <ajax@redhat.com> | 2018-02-23 16:08:10 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-02-26 16:46:34 -0500 |
commit | 8171d4c2d67b2990a278dc018ac32534c3afe606 (patch) | |
tree | f83e0536b3a40b0ed3eb32679e8c897891016736 /exa | |
parent | 92272378064a878ce7a62852b877d674bcad89cd (diff) |
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>
Diffstat (limited to 'exa')
-rw-r--r-- | exa/exa_render.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/exa/exa_render.c b/exa/exa_render.c index b24bec052..50a9a659e 100644 --- a/exa/exa_render.c +++ b/exa/exa_render.c @@ -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) || |