summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_setup_line.c
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2010-08-27 13:40:23 +0100
committerKeith Whitwell <keithw@vmware.com>2010-08-27 13:43:06 +0100
commit55f4eab93cf964a2ffa540fef9485b6f737a6f41 (patch)
tree43154132ba8f9bb8f45d05d1aec566e68df350ea /src/gallium/drivers/llvmpipe/lp_setup_line.c
parent04f8560dd826b62e96da5deed43910f767953707 (diff)
llvmpipe: use util_iround in place of round
Fix mingw build.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup_line.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_line.c b/src/gallium/drivers/llvmpipe/lp_setup_line.c
index cf770f521d..ce2da55cf4 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_line.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_line.c
@@ -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;