View | Details | Raw Unified | Return to bug 157051
Collapse All | Expand All

(-)display.c (-3 / +6 lines)
Lines 856-861 Link Here
856
856
857
	    if (timeToNextRedraw == 0)
857
	    if (timeToNextRedraw == 0)
858
	    {
858
	    {
859
                static int init = 0;
860
859
		gettimeofday (&tv, 0);
861
		gettimeofday (&tv, 0);
860
862
861
		timeDiff = TIMEVALDIFF (&tv, &s->lastRedraw);
863
		timeDiff = TIMEVALDIFF (&tv, &s->lastRedraw);
Lines 908-918 Link Here
908
		    {
910
		    {
909
			BoxPtr pBox;
911
			BoxPtr pBox;
910
			int    nBox, y;
912
			int    nBox, y;
911
913
		
912
			pBox = tmpRegion->rects;
914
                        pBox = tmpRegion->rects;
913
			nBox = tmpRegion->numRects;
915
			nBox = tmpRegion->numRects;
914
916
915
			if (s->copySubBuffer)
917
			if (s->copySubBuffer && init)
916
			{
918
			{
917
			    while (nBox--)
919
			    while (nBox--)
918
			    {
920
			    {
Lines 951-956 Link Here
951
					      pBox->x2 - pBox->x1,
953
					      pBox->x2 - pBox->x1,
952
					      pBox->y2 - pBox->y1,
954
					      pBox->y2 - pBox->y1,
953
					      GL_COLOR);
955
					      GL_COLOR);
956
init = 1;
954
957
955
				pBox++;
958
				pBox++;
956
			    }
959
			    }

Return to bug 157051