aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/col.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-05-16 16:46:51 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-05-16 16:52:31 +0900
commit4df9246db0893fc4e4d0c3c0663e300987c2a329 (patch)
treee3d955a64c0366df828bdfc8d42525aef4210f6f /src/bin/col.c
parentminiview - improve formatting (diff)
downloadterminology-4df9246db0893fc4e4d0c3c0663e300987c2a329.tar.gz
fix indenting
Diffstat (limited to 'src/bin/col.c')
-rw-r--r--src/bin/col.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/bin/col.c b/src/bin/col.c
index c4975a5..4c7cc5a 100644
--- a/src/bin/col.c
+++ b/src/bin/col.c
@@ -388,7 +388,7 @@ colors_term_init(Evas_Object *textgrid, Evas_Object *bg, Config *config)
char buf[32];
Color *color;
- for (c = 0; c < 4 * 12; c++)
+ for (c = 0; c < (4 * 12); c++)
{
n = c + (24 * (c / 24));
color = &colors[c / 24][(c % 24) / 12][c % 12];
@@ -466,26 +466,27 @@ colors_standard_get(int set, int col, unsigned char *r, unsigned char *g, unsign
}
/* if pos >= 256, it's in the 256 colors set */
-unsigned int color_get(unsigned int pos)
+unsigned int
+color_get(unsigned int pos)
{
Color *c;
if (pos >= 256)
{
pos -= 256;
- if (pos >= sizeof(colors256)/sizeof(Color))
+ if (pos >= (sizeof(colors256) / sizeof(Color)))
{
ERR("AAAAAA");
- return 0;
+ return 0;
}
c = &colors256[pos];
}
else
{
- if (pos >= sizeof(colors)/sizeof(Color))
+ if (pos >= (sizeof(colors) / sizeof(Color)))
{
ERR("AAAAAA");
- return 0;
+ return 0;
}
c = ((Color *)colors) + pos;
}