projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-4.22.tar.gz
[xscreensaver]
/
hacks
/
intermomentary.c
diff --git
a/hacks/intermomentary.c
b/hacks/intermomentary.c
index 7ad335e768f287c54ff6d09e6a99100650a1ab64..753aba5a7edc1a4f54959a72f47ceff6bd2ea8ca 100644
(file)
--- a/
hacks/intermomentary.c
+++ b/
hacks/intermomentary.c
@@
-30,6
+30,7
@@
* implied warranty.
*/
* implied warranty.
*/
+#include <math.h>
#include "screenhack.h"
#include <X11/Xutil.h>
#include <stdio.h>
#include "screenhack.h"
#include <X11/Xutil.h>
#include <stdio.h>
@@
-211,8
+212,8
@@
inline unsigned long trans_point(int x1, int y1, unsigned long myc, float a, str
if (a >= 1.0) {
ref_pixel(f, x1, y1) = myc;
} else {
if (a >= 1.0) {
ref_pixel(f, x1, y1) = myc;
} else {
- unsigned short int or
, og, ob
;
- unsigned short int r
, g, b
;
+ unsigned short int or
= 0, og = 0, ob = 0
;
+ unsigned short int r
= 0, g = 0, b = 0
;
unsigned short int nr, ng, nb;
unsigned long c;
unsigned short int nr, ng, nb;
unsigned long c;