diff options
author | Mattias Andrée <maandree@kth.se> | 2021-03-05 23:30:24 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-03-05 23:30:24 +0100 |
commit | 80a78b91c2905fcacf0236d63a9f4e3d7e576d7e (patch) | |
tree | 305419312ba536e041be28bb271118e0ccf6956b /libgamma_value_of_subpixel_order.c | |
parent | m (diff) | |
download | libgamma-80a78b91c2905fcacf0236d63a9f4e3d7e576d7e.tar.gz libgamma-80a78b91c2905fcacf0236d63a9f4e3d7e576d7e.tar.bz2 libgamma-80a78b91c2905fcacf0236d63a9f4e3d7e576d7e.tar.xz |
minor fixes + add tests
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libgamma_value_of_subpixel_order.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgamma_value_of_subpixel_order.c b/libgamma_value_of_subpixel_order.c index 163fed2..33c2a6f 100644 --- a/libgamma_value_of_subpixel_order.c +++ b/libgamma_value_of_subpixel_order.c @@ -8,7 +8,8 @@ * @param order The name of the subpixel order, for example * "Horizontal RGB" or "LIBGAMMA_SUBPIXEL_ORDER_HORIZONTAL_RGB" * @return The subpixel order; for example `LIBGAMMA_SUBPIXEL_ORDER_HORIZONTAL_RGB` - * for "Horizontal RGB" and "LIBGAMMA_SUBPIXEL_ORDER_HORIZONTAL_RGB" + * for "Horizontal RGB" and "LIBGAMMA_SUBPIXEL_ORDER_HORIZONTAL_RGB"; + * `LIBGAMMA_SUBPIXEL_ORDER_NOT_RECOGNISED` of not defined */ int libgamma_value_of_subpixel_order(const char *order) @@ -25,5 +26,5 @@ libgamma_value_of_subpixel_order(const char *order) LIST_SUBPIXEL_ORDERS(X) #undef X - return 0; + return LIBGAMMA_SUBPIXEL_ORDER_NOT_RECOGNISED; } |