Changeset a3f63ac in mainline for uspace/lib/gfx/src/color.c


Ignore:
Timestamp:
2019-09-24T11:13:18Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aac5069
Parents:
00e8290
git-author:
Jiri Svoboda <jiri@…> (2019-08-23 17:43:11)
git-committer:
Jiri Svoboda <jiri@…> (2019-09-24 11:13:18)
Message:

Move canvas GC and console GC out of libgfx

We need libgfx not to have any dependencies, it's just a protocol/API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfx/src/color.c

    r00e8290 ra3f63ac  
    7878}
    7979
     80/** Convert color to 16-bit RGB coordinates.
     81 *
     82 * @param color Color
     83 * @param r Place to store red coordinate
     84 * @param g Place to store green coordinate
     85 * @param b Place to store blue coordinate
     86 */
     87void gfx_color_get_rgb_i16(gfx_color_t *color, uint16_t *r, uint16_t *g,
     88    uint16_t *b)
     89{
     90        *r = color->r;
     91        *g = color->g;
     92        *b = color->b;
     93}
     94
    8095/** @}
    8196 */
Note: See TracChangeset for help on using the changeset viewer.