mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-19 08:58:29 +02:00
Fix Ubuntu-specific issue with FC_LCD_NONE et al
No idea if Ubuntu will ever learn not to modify public API of common libraries without any clue of what kind of problems they create by doing that. They could very well define FC_UBUNTU_LCD_FILTER if they wanted to, but no, they defined FC_LCD_FILTER as if it's an upstream thing. It wasn't.
This commit is contained in:
parent
1dc0f3a1ad
commit
64ba6c74db
2 changed files with 6 additions and 0 deletions
|
|
@ -64,6 +64,9 @@
|
|||
/* Fontconfig version older than 2.6 didn't have these options */
|
||||
#ifndef FC_LCD_FILTER
|
||||
#define FC_LCD_FILTER "lcdfilter"
|
||||
#endif
|
||||
/* Stupid Ubuntu defined FC_LCD_FILTER without defining the following */
|
||||
#ifndef FC_LCD_NONE
|
||||
#define FC_LCD_NONE 0
|
||||
#define FC_LCD_DEFAULT 1
|
||||
#define FC_LCD_LIGHT 2
|
||||
|
|
|
|||
|
|
@ -135,6 +135,9 @@ get_integer_default (Display *dpy,
|
|||
/* Fontconfig version older than 2.6 didn't have these options */
|
||||
#ifndef FC_LCD_FILTER
|
||||
#define FC_LCD_FILTER "lcdfilter"
|
||||
#endif
|
||||
/* Stupid Ubuntu defined FC_LCD_FILTER without defining the following */
|
||||
#ifndef FC_LCD_NONE
|
||||
#define FC_LCD_NONE 0
|
||||
#define FC_LCD_DEFAULT 1
|
||||
#define FC_LCD_LIGHT 2
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue