|
Line
Link Here
|
| 0 |
-- src/arch/unix/x11/gnome/uicolor.c |
0 |
++ src/arch/unix/x11/gnome/uicolor.c |
|
Lines 166-172
Link Here
|
| 166 |
way to do this? //tvr */ |
166 |
way to do this? //tvr */ |
| 167 |
im = XCreateImage(display, GDK_VISUAL_XVISUAL(visual), |
167 |
im = XCreateImage(display, GDK_VISUAL_XVISUAL(visual), |
| 168 |
x11ui_get_display_depth(), |
168 |
x11ui_get_display_depth(), |
| 169 |
ZPixmap, 0, (char *)data, 1, 1, 8, 1); |
169 |
ZPixmap, 0, (char *)data, 1, 1, 8, 0); |
| 170 |
if (!im) { |
170 |
if (!im) { |
| 171 |
log_error(LOG_DEFAULT, _("XCreateImage failed.")); |
171 |
log_error(LOG_DEFAULT, _("XCreateImage failed.")); |
| 172 |
free(data); |
172 |
free(data); |
| 173 |
-- src/arch/unix/x11/xaw/uicolor.c |
173 |
++ src/arch/unix/x11/xaw/uicolor.c |
|
Lines 121-127
Link Here
|
| 121 |
/* This is a kludge to map pixels to zimage values. Is there a better |
121 |
/* This is a kludge to map pixels to zimage values. Is there a better |
| 122 |
way to do this? //tvr */ |
122 |
way to do this? //tvr */ |
| 123 |
im = XCreateImage(display, visual, x11ui_get_display_depth(), |
123 |
im = XCreateImage(display, visual, x11ui_get_display_depth(), |
| 124 |
ZPixmap, 0, (char *)data, 1, 1, 8, 1); |
124 |
ZPixmap, 0, (char *)data, 1, 1, 8, 0); |
| 125 |
if (!im) { |
125 |
if (!im) { |
| 126 |
log_error(LOG_DEFAULT, _("XCreateImage failed.")); |
126 |
log_error(LOG_DEFAULT, _("XCreateImage failed.")); |
| 127 |
free(data); |
127 |
free(data); |