summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i915simple/i915_regions.c
diff options
context:
space:
mode:
authorMichal <michal@tungstengraphics.com>2007-11-17 14:26:24 +0000
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2007-11-22 11:18:02 +0000
commit5961732c1b59403b4e736fa354a64d4a0e5d8af2 (patch)
tree2b2e7ca173417f9a924079ec9849ad889acbfce4 /src/mesa/pipe/i915simple/i915_regions.c
parent4541ee5343df7c3ca937e088a85ec3f62970d318 (diff)
Make it compile under Win32.
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_regions.c')
-rw-r--r--src/mesa/pipe/i915simple/i915_regions.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/pipe/i915simple/i915_regions.c b/src/mesa/pipe/i915simple/i915_regions.c
index 0410446326..e8c4c92bc8 100644
--- a/src/mesa/pipe/i915simple/i915_regions.c
+++ b/src/mesa/pipe/i915simple/i915_regions.c
@@ -163,9 +163,9 @@ i915_region_copy(struct pipe_context *pipe,
else {
i915_copy_blit( i915_context(pipe),
dst->cpp,
- src->pitch, src->buffer, src_offset,
- dst->pitch, dst->buffer, dst_offset,
- srcx, srcy, dstx, dsty, width, height );
+ (short) src->pitch, src->buffer, src_offset,
+ (short) dst->pitch, dst->buffer, dst_offset,
+ (short) srcx, (short) srcy, (short) dstx, (short) dsty, (short) width, (short) height );
}
}
@@ -204,7 +204,7 @@ i915_region_fill(struct pipe_context *pipe,
ushort *row = (ushort *) get_pointer(dst, dstx, dsty);
for (i = 0; i < height; i++) {
for (j = 0; j < width; j++)
- row[j] = value;
+ row[j] = (ushort) value;
row += dst->pitch;
}
}
@@ -226,10 +226,10 @@ i915_region_fill(struct pipe_context *pipe,
else {
i915_fill_blit( i915_context(pipe),
dst->cpp,
- dst->pitch,
+ (short) dst->pitch,
dst->buffer, dst_offset,
- dstx, dsty,
- width, height,
+ (short) dstx, (short) dsty,
+ (short) width, (short) height,
value );
}
}