[cairo-commit] libglc/src glc_programmatic.c,1.3,1.4

David Reveman commit at pdx.freedesktop.org
Mon Mar 15 03:27:16 PST 2004


Committed by: davidr

Update of /cvs/cairo/libglc/src
In directory pdx:/tmp/cvs-serv31132/src

Modified Files:
	glc_programmatic.c 
Log Message:
Divide by zero fix

Index: glc_programmatic.c
===================================================================
RCS file: /cvs/cairo/libglc/src/glc_programmatic.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** a/glc_programmatic.c	6 Mar 2004 13:58:17 -0000	1.3
--- b/glc_programmatic.c	15 Mar 2004 11:27:13 -0000	1.4
***************
*** 255,259 ****
         start,
         end,
!        1.0 / length,
         0.0);
      proc_address->gl_program_local_param_4d_arb
--- 255,259 ----
         start,
         end,
!        (length)? 1.0 / length: INT_MAX,
         0.0);
      proc_address->gl_program_local_param_4d_arb
***************
*** 283,287 ****
         FIXED_TO_DOUBLE (gradient->start.point.x),
         surface->base.height - FIXED_TO_DOUBLE (gradient->start.point.y),
!        (length)? 1.0 / (length * length): 1000000.0,
         0.0);
    } break;
--- 283,287 ----
         FIXED_TO_DOUBLE (gradient->start.point.x),
         surface->base.height - FIXED_TO_DOUBLE (gradient->start.point.y),
!        (length)? 1.0 / (length * length): INT_MAX,
         0.0);
    } break;





More information about the cairo-commit mailing list