summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_cb_bitmap.c
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-24 13:12:41 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-24 13:12:41 +0900
commit5c1a78b7a85d23ad1358b34d03a0002a19483655 (patch)
tree9c193cc5eae45c8f655ffbe7045f6cc4e009e7b4 /src/mesa/state_tracker/st_cb_bitmap.c
parent0b3d1b1ea44791068e8c3dc88549c798fb5e0ea8 (diff)
mesa: More signed/unsigned float/integer fixes.
Diffstat (limited to 'src/mesa/state_tracker/st_cb_bitmap.c')
-rw-r--r--src/mesa/state_tracker/st_cb_bitmap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c
index 9e32ee2eb4..6fa3cbd533 100644
--- a/src/mesa/state_tracker/st_cb_bitmap.c
+++ b/src/mesa/state_tracker/st_cb_bitmap.c
@@ -494,14 +494,14 @@ draw_bitmap_quad(GLcontext *ctx, GLint x, GLint y, GLfloat z,
const GLfloat width = (GLfloat)fb->Width;
const GLfloat height = (GLfloat)fb->Height;
struct pipe_viewport_state vp;
- vp.scale[0] = 0.5 * width;
- vp.scale[1] = (GLfloat)(height * (invert ? -0.5 : 0.5));
- vp.scale[2] = 1.0;
- vp.scale[3] = 1.0;
- vp.translate[0] = (GLfloat)(0.5 * width);
- vp.translate[1] = (GLfloat)(0.5 * height);
- vp.translate[2] = 0.0;
- vp.translate[3] = 0.0;
+ vp.scale[0] = 0.5f * width;
+ vp.scale[1] = height * (invert ? -0.5f : 0.5f);
+ vp.scale[2] = 1.0f;
+ vp.scale[3] = 1.0f;
+ vp.translate[0] = 0.5f * width;
+ vp.translate[1] = 0.5f * height;
+ vp.translate[2] = 0.0f;
+ vp.translate[3] = 0.0f;
cso_set_viewport(cso, &vp);
}