diff options
author | Keith Packard <keithp@neko.keithp.com> | 2006-09-01 02:22:59 -0700 |
---|---|---|
committer | Keith Packard <keithp@neko.keithp.com> | 2006-09-01 02:22:59 -0700 |
commit | 09bd9ae2be032efb05a8be7bae584fa18756d951 (patch) | |
tree | 5c6bb0a2fed153681751c1e19c063a2a65505ad3 | |
parent | 18b6857c6476517db7932025847ae952feba758d (diff) |
Fontset pattern references are relative to fontset, not array.
Within a fontset, the patterns are stored as pointers in an array.
When stored as offsets, the offsets are relative to the fontset object
itself, not the base of the array of pointers.
-rw-r--r-- | src/fcint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcint.h b/src/fcint.h index 42aa0eb..78d17e7 100644 --- a/src/fcint.h +++ b/src/fcint.h @@ -201,7 +201,7 @@ struct _FcPattern { #define FcFontSetFonts(fs) FcPointerMember(fs,fonts,FcPattern *) #define FcFontSetFont(fs,i) (FcIsEncodedOffset((fs)->fonts) ? \ - FcEncodedOffsetToPtr(FcFontSetFonts(fs), \ + FcEncodedOffsetToPtr(fs, \ FcFontSetFonts(fs)[i], \ FcPattern) : \ fs->fonts[i]) |