updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / effectv / timedist.patch
blob0d876c8e43a39926a0d7c3c7ff2777c97b6343ce
1 --- effects/timedist.c (revision 478)
2 +++ effects/timedist.c (working copy)
3 @@ -27,7 +27,16 @@
4 static int plane;
5 static int *warptime[2];
6 static int warptimeFrame;
7 +static int bgIsSet;
9 +static int setBackground(RGB32 *src)
11 + image_bgset_y(src);
12 + bgIsSet = 1;
14 + return 0;
17 effect *timeDistortionRegister(void)
19 effect *entry;
20 @@ -70,6 +79,7 @@
22 plane = 0;
23 image_set_threshold_y(MAGIC_THRESHOLD);
24 + bgIsSet = 0;
26 state = 1;
27 return 0;
28 @@ -94,6 +104,9 @@
29 int *p, *q;
31 memcpy(planetable[plane], src, PIXEL_SIZE * video_area);
32 + if(!bgIsSet) {
33 + setBackground(src);
34 + }
35 diff = image_bgsubtract_update_y(src);
37 p = warptime[warptimeFrame ] + video_width + 1;
38 @@ -109,7 +122,7 @@
39 q += 2;
42 - q = warptime[warptimeFrame ^ 1] + video_width + 1;
43 + q = warptime[warptimeFrame ^ 1];
44 for(i=0; i<video_area; i++) {
45 if(*diff++) {
46 *q = PLANES - 1;