diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-05-11 20:05:31 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-05-11 20:05:31 +1000 |
commit | 3a98279583cb5d8489fff26f89d148b6f807aa07 (patch) | |
tree | 482bb8d556830e0e3263172b760df669bd97e026 /src/gdisp/sys_defs.h | |
parent | 0a7f498f3ed27fabc072efc3776d8d4a2de308e7 (diff) | |
download | uGFX-3a98279583cb5d8489fff26f89d148b6f807aa07.tar.gz uGFX-3a98279583cb5d8489fff26f89d148b6f807aa07.tar.bz2 uGFX-3a98279583cb5d8489fff26f89d148b6f807aa07.zip |
Add gdispContrastColor() and remove divides from gdispBlendColors()
Diffstat (limited to 'src/gdisp/sys_defs.h')
-rw-r--r-- | src/gdisp/sys_defs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gdisp/sys_defs.h b/src/gdisp/sys_defs.h index a40d6e80..72fdc621 100644 --- a/src/gdisp/sys_defs.h +++ b/src/gdisp/sys_defs.h @@ -211,6 +211,16 @@ extern "C" { color_t gdispBlendColor(color_t fg, color_t bg, uint8_t alpha); /** + * @brief Find a contrasting color + * @return The contrasting color + * + * @param[in] color The color to contrast + * + * @api + */ +color_t gdispContrastColor(color_t color); + +/** * @brief Get the specified display * @return The pointer to the display or NULL if the display doesn't exist * @note The GDISP variable contains the display used by the gdispXxxx routines |