This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 4224d32b5a4eddd8751d8fd7fbc02dab74df125f (commit) from d5b0a7ec7f7f9a3552742911a9d7528d5adf86c5 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/4224d32b5a4eddd8751d8fd7fbc02dab74df1...
commit 4224d32b5a4eddd8751d8fd7fbc02dab74df125f Author: Jiri BlueBear Dluhos jiri.bluebear.dluhos@gmail.com Date: Mon May 7 17:29:45 2012 +0200
Added cyan and magenta predefined colors (in order to have a complete CMYK)
diff --git a/include/core/GP_Color.h b/include/core/GP_Color.h index 514fe82..4c3233b 100644 --- a/include/core/GP_Color.h +++ b/include/core/GP_Color.h @@ -46,6 +46,8 @@ typedef enum GP_Color { GP_COL_GREEN, GP_COL_BLUE, GP_COL_YELLOW, + GP_COL_CYAN, + GP_COL_MAGENTA, GP_COL_BROWN, GP_COL_ORANGE, GP_COL_GRAY_DARK, diff --git a/libs/core/GP_Color.c b/libs/core/GP_Color.c index bf055b2..e124577 100644 --- a/libs/core/GP_Color.c +++ b/libs/core/GP_Color.c @@ -37,6 +37,8 @@ static char *color_names[] = { "Green", "Blue", "Yellow", + "Cyan", + "Magenta", "Brown", "Orange", "DarkGray", @@ -51,21 +53,25 @@ static uint8_t rgb888_colors[][3] = { {0x00, 0xff, 0x00}, /* Green */ {0x00, 0x00, 0xff}, /* Blue */ {0xff, 0xff, 0x00}, /* Yellow */ + {0x00, 0xff, 0xff}, /* Cyan */ + {0xff, 0x00, 0xff}, /* Magenta */ {0xa5, 0x2a, 0x2a}, /* Brown */ {0xff, 0xa5, 0x00}, /* Orange */ {0x7f, 0x7f, 0x7f}, /* DarkGray */ - {0xbe, 0xbe, 0xbe}, /* LigthGray */ + {0xbe, 0xbe, 0xbe}, /* LightGray */ {0xa0, 0x20, 0xf0}, /* Purple */ {0xff, 0xff, 0xff}, /* White */ };
-/* 8-8-4 RGB palette */ +/* 3-2-3 RGB palette */ static uint8_t p8_colors[] = { 0x00, /* Black */ 0xe0, /* Red */ 0x1c, /* Green */ 0x03, /* Blue */ 0xfc, /* Yellow */ + 0x1f, /* Cyan */ + 0xe7, /* Magenta */ 0x88, /* Brown */ 0xf0, /* Orange */ 0x49, /* DarkGray */
-----------------------------------------------------------------------
Summary of changes: include/core/GP_Color.h | 2 ++ libs/core/GP_Color.c | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.