summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-18 16:45:53 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-18 16:45:53 (GMT)
commit3dcd8fde2d4e9a6bc85ac198433cc06952332c5f (patch)
tree963bd9c2a006612f58a0947ca7a54580562aaaa6
parent70b257fa25b849bcc319365a2757cc430f40f2c8 (diff)
downloadtk-3dcd8fde2d4e9a6bc85ac198433cc06952332c5f.zip
tk-3dcd8fde2d4e9a6bc85ac198433cc06952332c5f.tar.gz
tk-3dcd8fde2d4e9a6bc85ac198433cc06952332c5f.tar.bz2
test output in Xorg rgb.txt formatrfe_3503317
-rw-r--r--xlib/xcolors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlib/xcolors.c b/xlib/xcolors.c
index 572f092..7a83146 100644
--- a/xlib/xcolors.c
+++ b/xlib/xcolors.c
@@ -418,13 +418,13 @@ int main() {
end = buf + strlen(buf);
num = 0;
result = XParseColor(0, 0, buf, &color);
- printf("%s %d %d %d\n", buf, color.red >> 8, color.green >> 8, color.blue >> 8);
+ printf("%3d %3d %3d\t\t%s\n", color.red >> 8, color.green >> 8, color.blue >> 8, buf);
maxnum = xColors[i][31];
if (maxnum == 8) maxnum = 100;
while (result && ++num <= maxnum) {
sprintf(end, "%d", num);
result = XParseColor(0, 0, buf, &color);
- printf("%s %d %d %d\n", buf, color.red >> 8, color.green >> 8, color.blue >> 8);
+ printf("%3d %3d %3d\t\t%s\n", color.red >> 8, color.green >> 8, color.blue >> 8, buf);
}
if (!result) {
break;