diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-18 16:45:53 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-18 16:45:53 (GMT) |
commit | bd535a4a8a0bbfc3d5fe6b26d68e76abf3c50387 (patch) | |
tree | 963bd9c2a006612f58a0947ca7a54580562aaaa6 /xlib | |
parent | e715842f2ba3fae96cf2b1d53d63bf4c060d708a (diff) | |
download | tk-bd535a4a8a0bbfc3d5fe6b26d68e76abf3c50387.zip tk-bd535a4a8a0bbfc3d5fe6b26d68e76abf3c50387.tar.gz tk-bd535a4a8a0bbfc3d5fe6b26d68e76abf3c50387.tar.bz2 |
test output in Xorg rgb.txt format
Diffstat (limited to 'xlib')
-rw-r--r-- | xlib/xcolors.c | 4 |
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; |