diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-04-19 18:22:23 +0000 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-04-19 18:22:23 +0000 |
commit | 7c4f197866a4f83ad497a9ba48209918a4913d4f (patch) | |
tree | fdb266249c5bcf9bc51fef2eb30ee2cc2e7670d9 | |
parent | dbc24925d2873aa3418cb08296af0039f4284f4e (diff) |
fix cyan background problem (reported by S3)
fix cyan background problem (reported by S3)
-rw-r--r-- | src/GsWidget.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx index 9e456b8..dc134d2 100644 --- a/src/GsWidget.cxx +++ b/src/GsWidget.cxx @@ -1,5 +1,5 @@ // -// "$Id: GsWidget.cxx,v 1.16 2005/02/28 20:01:39 hofmann Exp $" +// "$Id: GsWidget.cxx,v 1.17 2005/04/19 20:22:23 hofmann Exp $" // // GsWidget routines. // @@ -75,7 +75,9 @@ void GsWidget::setProps() { XA_STRING, 8, PropModeReplace, (unsigned char*) data, strlen(data)); - snprintf(data, 512, "%s %d %d", "Color", 0, 65535); + snprintf(data, 512, "%s %d %d", "Color", + (int) BlackPixel(fl_display, DefaultScreen(fl_display)), + (int) WhitePixel(fl_display, DefaultScreen(fl_display))); XChangeProperty(fl_display, xid, atoms[1], XA_STRING, 8, PropModeReplace, |