diff options
author | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2016-10-23 03:32:58 +0200 |
---|---|---|
committer | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2016-10-23 03:32:58 +0200 |
commit | df6393be75b8b09184426269135e031bda0e8621 (patch) | |
tree | 49fc9d94fcab88aec5ac313d4cc07688c4b8ae6f /src/util.h | |
parent | e59d0e9e120f1dbde9ab068748a190e93978e5b7 (diff) | |
download | imv-df6393be75b8b09184426269135e031bda0e8621.tar.gz |
Simplify hex color parser
It is actually a trivial task for strtoul + some bit shifting, so there is no
need for two separate functions.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -27,10 +27,6 @@ size_t read_from_stdin(void **buffer); /* Creates a new SDL_Texture* containing a chequeboard texture */ SDL_Texture *create_chequered(SDL_Renderer *renderer); -/* Parses a triplet of hexadecimal bytes. Writes values to r, g, and b. */ -int parse_hex_color(const char* str, - unsigned char *r, unsigned char *g, unsigned char *b); - /* Loads a font using SDL2_ttf given a spec in the format "name:size" */ TTF_Font *load_font(const char *font_spec); |