From 3dcd8fde2d4e9a6bc85ac198433cc06952332c5f Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Sun, 18 Mar 2012 16:45:53 +0000 Subject: test output in Xorg rgb.txt format --- xlib/xcolors.c | 4 ++-- 1 file 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; -- cgit v0.12