Annotation of /trunk/compiz/patches/compiz-intel-copy-pixel-issue-workaround-1.diff
Parent Directory | Revision Log
Revision 144 -
(hide annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 705 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 705 byte(s)
-import
1 | niro | 144 | --- 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 | } |