From f47f00ab747563678c8625de5e5b2a588660064e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 4 Oct 2005 11:24:09 +0000 Subject: [PATCH] Mark the temporary pixmap dirty if UploadToScreen succeeds. Failure to do so resulted in a solid black glyph if the font rendering actually resulted in a fallback (subpixel AA, for example) and the temporary got migrated after 10 or so glyphs. --- exa/exa_render.c | 2 ++ hw/xfree86/exa/exa_render.c | 2 ++ hw/xfree86/exa/exapict.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/exa/exa_render.c b/exa/exa_render.c index d57a2215e..e71f53575 100644 --- a/exa/exa_render.c +++ b/exa/exa_render.c @@ -718,6 +718,8 @@ exaGlyphs (CARD8 op, { exaCopyArea (&pScratchPixmap->drawable, &pPixmap->drawable, pGC, 0, 0, glyph->info.width, glyph->info.height, 0, 0); + } else { + exaDrawableDirty (&pPixmap->drawable); } if (maskFormat) diff --git a/hw/xfree86/exa/exa_render.c b/hw/xfree86/exa/exa_render.c index d57a2215e..e71f53575 100644 --- a/hw/xfree86/exa/exa_render.c +++ b/hw/xfree86/exa/exa_render.c @@ -718,6 +718,8 @@ exaGlyphs (CARD8 op, { exaCopyArea (&pScratchPixmap->drawable, &pPixmap->drawable, pGC, 0, 0, glyph->info.width, glyph->info.height, 0, 0); + } else { + exaDrawableDirty (&pPixmap->drawable); } if (maskFormat) diff --git a/hw/xfree86/exa/exapict.c b/hw/xfree86/exa/exapict.c index d57a2215e..e71f53575 100644 --- a/hw/xfree86/exa/exapict.c +++ b/hw/xfree86/exa/exapict.c @@ -718,6 +718,8 @@ exaGlyphs (CARD8 op, { exaCopyArea (&pScratchPixmap->drawable, &pPixmap->drawable, pGC, 0, 0, glyph->info.width, glyph->info.height, 0, 0); + } else { + exaDrawableDirty (&pPixmap->drawable); } if (maskFormat)