Magellan Linux

Contents of /trunk/compiz/patches/compiz-intel-copy-pixel-issue-workaround-1.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (show annotations) (download)
Tue May 8 20:06:05 2007 UTC (16 years, 11 months ago) by niro
File size: 705 byte(s)
-import

1 --- src/display.c 13 Mar 2006 16:13:48 -0000 1.7
2 +++ src/display.c 13 Mar 2006 16:54:02 -0000
3 @@ -856,6 +856,8 @@
4
5 if (timeToNextRedraw == 0)
6 {
7 + static int init = 0;
8 +
9 gettimeofday (&tv, 0);
10
11 timeDiff = TIMEVALDIFF (&tv, &s->lastRedraw);
12 @@ -908,11 +910,11 @@
13 {
14 BoxPtr pBox;
15 int nBox, y;
16 -
17 - pBox = tmpRegion->rects;
18 +
19 + pBox = tmpRegion->rects;
20 nBox = tmpRegion->numRects;
21
22 - if (s->copySubBuffer)
23 + if (s->copySubBuffer && init)
24 {
25 while (nBox--)
26 {
27 @@ -951,6 +953,7 @@
28 pBox->x2 - pBox->x1,
29 pBox->y2 - pBox->y1,
30 GL_COLOR);
31 +init = 1;
32
33 pBox++;
34 }