projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
llvmpipe: use util_iround in place of round
[mesa.git]
/
src
/
gallium
/
drivers
/
llvmpipe
/
lp_setup_line.c
diff --git
a/src/gallium/drivers/llvmpipe/lp_setup_line.c
b/src/gallium/drivers/llvmpipe/lp_setup_line.c
index cf770f521ded97ea747347bdc2f1f1c7174a042d..ce2da55cf49d32177a3ce03d092cdf74ac078313 100644
(file)
--- 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;