diff options
author | Roland Scheidegger <[email protected]> | 2010-08-23 17:55:16 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2010-08-23 17:55:16 +0200 |
commit | c2f074d8a4b93f3f3a81311f9a114b11bc5f80d8 (patch) | |
tree | d389c7e693eac270d3bca424642c17df629d7ec5 /src/gallium/auxiliary/util/u_rect.h | |
parent | c907b947130c884de09e48e1ecbeecc9afc9f75b (diff) |
util: fix util_fill_rect to take util_color instead of u32 param
util_fill_rect could not handle formats with more than 32 bits,
since the fill color was a uint32_t value. Fix this by using
a util_color union instead, and also expand the union so it
works with formats which have up to 256 bits (the max of any
format currently defined).
Diffstat (limited to 'src/gallium/auxiliary/util/u_rect.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_rect.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_rect.h b/src/gallium/auxiliary/util/u_rect.h index 40d57e662d7..deb00cc80cd 100644 --- a/src/gallium/auxiliary/util/u_rect.h +++ b/src/gallium/auxiliary/util/u_rect.h @@ -36,6 +36,7 @@ #include "pipe/p_format.h" +#include "util/u_pack_color.h" extern void @@ -47,7 +48,7 @@ util_copy_rect(ubyte * dst, enum pipe_format format, extern void util_fill_rect(ubyte * dst, enum pipe_format format, unsigned dst_stride, unsigned dst_x, unsigned dst_y, - unsigned width, unsigned height, uint32_t value); + unsigned width, unsigned height, union util_color *uc); #endif /* U_RECT_H */ |