diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2007-10-31 14:15:35 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2007-11-04 16:11:28 -0800 |
commit | f2e310132fbe1520c1b5f3da4faa2d2d47835e72 (patch) | |
tree | b2c053ee4a4bdc54267caf59543c9adb0057fc5a /dix/glyphcurs.c | |
parent | 3f1b6765aadf665ede8253464da19a5878f16e56 (diff) |
Add CreatePixmap allocation hints.
These hints allow an acceleration architecture to optimize allocation of certain
types of pixmaps, such as pixmaps that will serve as backing pixmaps for
redirected windows.
Diffstat (limited to 'dix/glyphcurs.c')
-rw-r--r-- | dix/glyphcurs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dix/glyphcurs.c b/dix/glyphcurs.c index 70b1ff8f7..905b5fb13 100644 --- a/dix/glyphcurs.c +++ b/dix/glyphcurs.c @@ -98,7 +98,8 @@ ServerBitsFromGlyph(FontPtr pfont, unsigned ch, CursorMetricPtr cm, unsigned cha bzero(pbits, nby); ppix = (PixmapPtr)(*pScreen->CreatePixmap)(pScreen, cm->width, - cm->height, 1); + cm->height, 1, + CREATE_PIXMAP_USAGE_SCRATCH); pGC = GetScratchGC(1, pScreen); if (!ppix || !pGC) { |