Export exaPrepare/FinishGC to the rest of EXA, and use it in the ImageGlyph

implementation to avoid unprepared access to the tile. Also, relocate
    the fbGetDrawable to avoid using a stale dest pointer after
    exaSolidBoxClipped() may have migrated it. Revealed by xtest.
This commit is contained in:
Eric Anholt 2006-04-01 22:35:16 +00:00
commit 5f95146fcf
4 changed files with 23 additions and 4 deletions

View file

@ -36,7 +36,7 @@
* Solid doesn't use an extra pixmap source, and Stippled/OpaqueStippled are
* 1bpp and never in fb, so we don't worry about them.
*/
static void
void
exaPrepareAccessGC(GCPtr pGC)
{
if (pGC->fillStyle == FillTiled)
@ -46,7 +46,7 @@ exaPrepareAccessGC(GCPtr pGC)
/**
* Finishes access to the tile in the GC, if used.
*/
static void
void
exaFinishAccessGC(GCPtr pGC)
{
if (pGC->fillStyle == FillTiled)