projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.40.tar.gz
[xscreensaver]
/
jwxyz
/
jwxyz-image.c
diff --git
a/jwxyz/jwxyz-image.c
b/jwxyz/jwxyz-image.c
index a419965be594b9b9388602a65c0f9cdc3603d700..b1b333275f6a961d5a69718cee8273644caa9c79 100644
(file)
--- a/
jwxyz/jwxyz-image.c
+++ b/
jwxyz/jwxyz-image.c
@@
-64,12
+64,17
@@
jwxyz_image_make_display (Window w, const unsigned char *rgba_bytes)
Visual *v = &d->visual;
v->class = TrueColor;
Assert (rgba_bytes[3] == 3, "alpha not last");
Visual *v = &d->visual;
v->class = TrueColor;
Assert (rgba_bytes[3] == 3, "alpha not last");
+ unsigned long masks[4];
for (unsigned i = 0; i != 4; ++i) {
union color_bytes color;
color.pixel = 0;
color.bytes[rgba_bytes[i]] = 0xff;
for (unsigned i = 0; i != 4; ++i) {
union color_bytes color;
color.pixel = 0;
color.bytes[rgba_bytes[i]] = 0xff;
-
v->rgba_
masks[i] = color.pixel;
+ masks[i] = color.pixel;
}
}
+ v->red_mask = masks[0];
+ v->green_mask = masks[1];
+ v->blue_mask = masks[2];
+ v->alpha_mask = masks[3];
d->timers_data = jwxyz_sources_init (XtDisplayToApplicationContext (d));
d->window_background = BlackPixel(d,0);
d->timers_data = jwxyz_sources_init (XtDisplayToApplicationContext (d));
d->window_background = BlackPixel(d,0);