diff src/paranormal/drawing.c @ 268:a1be19f8de1f trunk

[svn] - calculate FPS for frame limiter - avoid math overflows when drawing lines
author nenolod
date Sun, 19 Nov 2006 08:12:42 -0800
parents 4b48e6e9b3cb
children fd4dcd3fe08f
line wrap: on
line diff
--- a/src/paranormal/drawing.c	Sun Nov 19 07:36:02 2006 -0800
+++ b/src/paranormal/drawing.c	Sun Nov 19 08:12:42 2006 -0800
@@ -28,7 +28,7 @@
       while (x0 != x1)
         {
           x0 += dx;
-          y0 = round(m * x0 + b);
+          y0 = m * x0 + b;
 
           pn_image_data->surface[0][PN_IMG_INDEX(x0, y0)] = value;
         }