projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://ftp.x.org/contrib/applications/xscreensaver-3.10.tar.gz
[xscreensaver]
/
hacks
/
t3d.c
diff --git
a/hacks/t3d.c
b/hacks/t3d.c
index 58ec47f2bf01ae96dfe8b35326ece537e09350b8..b569c7511fc04dcfa7172d81506e5c728df09da3 100644
(file)
--- a/
hacks/t3d.c
+++ b/
hacks/t3d.c
@@
-209,7
+209,7
@@
initColor (double r, double g, double b)
{
int n,n1;
unsigned long pixels[12];
{
int n,n1;
unsigned long pixels[12];
- long dummy;
+
unsigned
long dummy;
cmap = xgwa.colormap;
cmap = xgwa.colormap;
@@
-293,7
+293,7
@@
initialize (void)
if (s && *s)
{
double hh, ss, vv;
if (s && *s)
{
double hh, ss, vv;
- if (3 == sscanf (s, "%lf %lf %lf", &hh, &ss, &vv, &dummy)) {
+ if (3 == sscanf (s, "%lf %lf %lf
%c
", &hh, &ss, &vv, &dummy)) {
hue = hh, sat = ss, val = vv;
hsv2rgb(hue,sat,val,&r,&g,&b);
}
hue = hh, sat = ss, val = vv;
hsv2rgb(hue,sat,val,&r,&g,&b);
}
@@
-816,7
+816,8
@@
screenhack (Display *d, Window w)
{
Window junk_win,in_win;
{
Window junk_win,in_win;
- int px,py,junk,kb/*,wai*/;
+ int px,py,junk/*,wai*/;
+ unsigned int kb;
/* int act,act1,tc;*/
double vnorm;
/* double var=0.0; */
/* int act,act1,tc;*/
double vnorm;
/* double var=0.0; */