OSDN Git Service

llvmpipe: use util_iround in place of round
authorKeith Whitwell <keithw@vmware.com>
Fri, 27 Aug 2010 12:40:23 +0000 (13:40 +0100)
committerKeith Whitwell <keithw@vmware.com>
Fri, 27 Aug 2010 12:43:06 +0000 (13:43 +0100)
Fix mingw build.

src/gallium/drivers/llvmpipe/lp_setup_line.c

index cf770f5..ce2da55 100644 (file)
@@ -280,7 +280,7 @@ lp_setup_line( struct lp_setup_context *setup,
    int nr_planes = 4;
    
    /* linewidth should be interpreted as integer */
-   int fixed_width = subpixel_snap(round(width));
+   int fixed_width = util_iround(width) * FIXED_ONE;
 
    float x_offset=0;
    float y_offset=0;