Commit a45e1d6c authored by Dave Airlie's avatar Dave Airlie
Browse files

render: add GetGlyphPicture accessor.

This is a new API to stop the drivers directly looking up the glyph pictures
in a global array. It provides a define GLYPH_HAS_GLYPH_PICTURE_ACCESSOR for
drivers to work in a compat way.
Reviewed-by: Aaron Plattner's avatarAaron Plattner <>
Reviewed-by: Keith Packard's avatarKeith Packard <>
Signed-off-by: default avatarDave Airlie <>
parent 41151f88
......@@ -684,3 +684,13 @@ miGlyphs(CARD8 op,
(*pScreen->DestroyPixmap) (pMaskPixmap);
PicturePtr GetGlyphPicture(GlyphPtr glyph, ScreenPtr pScreen)
return GlyphPicture(glyph)[pScreen->myNum];
void SetGlyphPicture(GlyphPtr glyph, ScreenPtr pScreen, PicturePtr picture)
GlyphPicture(glyph)[pScreen->myNum] = picture;
......@@ -133,4 +133,10 @@ extern _X_EXPORT GlyphSetPtr AllocateGlyphSet(int fdepth, PictFormatPtr format);
extern _X_EXPORT int
FreeGlyphSet(pointer value, XID gid);
#define GLYPH_HAS_GLYPH_PICTURE_ACCESSOR 1 /* used for api compat */
extern _X_EXPORT PicturePtr
GetGlyphPicture(GlyphPtr glyph, ScreenPtr pScreen);
extern _X_EXPORT void
SetGlyphPicture(GlyphPtr glyph, ScreenPtr pScreen, PicturePtr picture);
#endif /* _GLYPHSTR_H_ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment