aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorDmitrij D. Czarkoff <czarkoff@gmail.com>2016-10-23 03:32:58 +0200
committerDmitrij D. Czarkoff <czarkoff@gmail.com>2016-10-23 03:32:58 +0200
commitdf6393be75b8b09184426269135e031bda0e8621 (patch)
tree49fc9d94fcab88aec5ac313d4cc07688c4b8ae6f /src/util.h
parente59d0e9e120f1dbde9ab068748a190e93978e5b7 (diff)
downloadimv-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.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/util.h b/src/util.h
index 039d55f..652c5be 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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);