diff options
author | Mattias Andrée <maandree@kth.se> | 2023-01-08 22:19:02 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-01-08 22:19:02 +0100 |
commit | 603142e23528061e7ba5bdbcb466e676237745a8 (patch) | |
tree | cbcff6a1032d056e1e7b87846fdcc96248b932a7 /libfonts.h | |
parent | Partially implement libfonts_get_default_font, libfonts_get_{default,output}_rendering_settings (diff) | |
download | libfonts-603142e23528061e7ba5bdbcb466e676237745a8.tar.gz libfonts-603142e23528061e7ba5bdbcb466e676237745a8.tar.bz2 libfonts-603142e23528061e7ba5bdbcb466e676237745a8.tar.xz |
Fix warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libfonts.h | 31 |
1 files changed, 21 insertions, 10 deletions
@@ -12,6 +12,12 @@ #define LIBFONTS_CONTEXT_VERSION 0 +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wpadded" +#endif + + /** * Style-based default fonts */ @@ -1243,12 +1249,6 @@ struct libfonts_rendering_settings { uint32_t reference_height; /** - * The output device's physical subpixel order, - * when it is not rotated - */ - enum libfonts_subpixel_order subpixel_order; - - /** * If the product of the applicable pixel densities * (horizontal and vertical) is less than this * value, the antialiasing mode shall downgrade @@ -1268,6 +1268,12 @@ struct libfonts_rendering_settings { double min_dpsqi_for_subpixel; /** + * The output device's physical subpixel order, + * when it is not rotated + */ + enum libfonts_subpixel_order subpixel_order; + + /** * Antialiasing mode for horizontal (on unrotated output), grey text */ enum libfonts_antialiasing horizontal_grey_text_antialiasing; @@ -1343,14 +1349,14 @@ struct libfonts_output { int output_screen; /** - * Transformation that is applied to the output + * The output's subpixel order, disregarding applied rotation */ - struct libfonts_transformation output_transformation; + enum libfonts_subpixel_order unrotated_subpixel_order; /** - * The output's subpixel order, disregarding applied rotation + * Transformation that is applied to the output */ - enum libfonts_subpixel_order unrotated_subpixel_order; + struct libfonts_transformation output_transformation; /** * The output's horizontal pixel density (pixels per inch), @@ -1619,6 +1625,11 @@ struct libfonts_context { }; +#if defined(__clang__) +# pragma clang diagnostic pop +#endif + + /** * `NULL`-terminated list of environment variables * that affect the execution of the library |