gallium: Fix build on Windows.
This commit is contained in:
committed by
José Fonseca
parent
3f1b712d0a
commit
d3cd39493c
@@ -175,7 +175,7 @@ static void wide_line_aa(struct draw_stage *stage,
|
||||
float *pos;
|
||||
float dx = header->v[1]->data[0][0] - header->v[0]->data[0][0];
|
||||
float dy = header->v[1]->data[0][1] - header->v[0]->data[0][1];
|
||||
const float len = sqrt(dx * dx + dy * dy);
|
||||
const float len = (float) sqrt(dx * dx + dy * dy);
|
||||
uint i;
|
||||
|
||||
dx = dx * half_width / len;
|
||||
|
||||
@@ -99,7 +99,7 @@ i915_surface_copy(struct pipe_context *pipe,
|
||||
dstx, dsty,
|
||||
width, height,
|
||||
pipe_surface_map(src),
|
||||
do_flip ? -src->pitch : src->pitch,
|
||||
do_flip ? -(int) src->pitch : src->pitch,
|
||||
srcx, do_flip ? 1 - srcy - height : srcy);
|
||||
|
||||
pipe_surface_unmap(src);
|
||||
|
||||
@@ -54,7 +54,7 @@ sp_surface_copy(struct pipe_context *pipe,
|
||||
dstx, dsty,
|
||||
width, height,
|
||||
pipe_surface_map(src),
|
||||
do_flip ? -src->pitch : src->pitch,
|
||||
do_flip ? -(int) src->pitch : src->pitch,
|
||||
srcx, do_flip ? 1 - srcy - height : srcy);
|
||||
|
||||
pipe_surface_unmap(src);
|
||||
|
||||
Reference in New Issue
Block a user