aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/col.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-05-16 17:44:11 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-05-16 17:44:11 +0900
commit2aeeaa4589951be3020312edd3d5e58a7441ab7e (patch)
treeed4fe3a7c4785fdbe72d0557df6b3b69f980280c /src/bin/col.c
parentfix indenting (diff)
downloadterminology-2aeeaa4589951be3020312edd3d5e58a7441ab7e.tar.gz
major color correctness and sizing correctness fixes to miniview
and that's only a start. they whole smart object is wrong.
Diffstat (limited to 'src/bin/col.c')
-rw-r--r--src/bin/col.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/bin/col.c b/src/bin/col.c
index 4c7cc5a..b097565 100644
--- a/src/bin/col.c
+++ b/src/bin/col.c
@@ -464,35 +464,3 @@ colors_standard_get(int set, int col, unsigned char *r, unsigned char *g, unsign
*b = 0;
*a = 0;
}
-
-/* if pos >= 256, it's in the 256 colors set */
-unsigned int
-color_get(unsigned int pos)
-{
- Color *c;
-
- if (pos >= 256)
- {
- pos -= 256;
- if (pos >= (sizeof(colors256) / sizeof(Color)))
- {
- ERR("AAAAAA");
- return 0;
- }
- c = &colors256[pos];
- }
- else
- {
- if (pos >= (sizeof(colors) / sizeof(Color)))
- {
- ERR("AAAAAA");
- return 0;
- }
- c = ((Color *)colors) + pos;
- }
-
- return (c->a << 24) |
- (c->r << 16) |
- (c->g << 8) |
- (c->b);
-}