projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04f8560
)
llvmpipe: use util_iround in place of round
author
Keith Whitwell
<keithw@vmware.com>
Fri, 27 Aug 2010 12:40:23 +0000
(13:40 +0100)
committer
Keith 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
patch
|
blob
|
history
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;