From 013023e77185e6f3cb2ab9f202029fe903042879 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 15 Mar 2013 12:17:45 -0700 Subject: [PATCH] vwebp: replace doubles w/floats where appropriate Change-Id: Ief1ef5213a5f357004922989e6e5d97ef3561a23 --- examples/vwebp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/vwebp.c b/examples/vwebp.c index bff30d05..971eb604 100644 --- a/examples/vwebp.c +++ b/examples/vwebp.c @@ -141,7 +141,7 @@ static void HandleDisplay(void) { glPixelZoom(1, -1); xoff = (GLfloat)(2. * iter->x_offset / kParams.canvas_width); yoff = (GLfloat)(2. * iter->y_offset / kParams.canvas_height); - glRasterPos2f(-1. + xoff, 1. - yoff); + glRasterPos2f(-1.f + xoff, 1.f - yoff); glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glPixelStorei(GL_UNPACK_ROW_LENGTH, pic->u.RGBA.stride / 4); if (iter->dispose_method == WEBP_MUX_DISPOSE_BACKGROUND) { @@ -153,12 +153,12 @@ static void HandleDisplay(void) { if (kParams.print_info) { char tmp[32]; - glColor4f(0.90, 0.0, 0.90, 1.0); + glColor4f(0.90f, 0.0f, 0.90f, 1.0f); glRasterPos2f(-0.95f, 0.90f); PrintString(kParams.file_name); snprintf(tmp, sizeof(tmp), "Dimension:%d x %d", pic->width, pic->height); - glColor4f(0.90, 0.0, 0.90, 1.0); + glColor4f(0.90f, 0.0f, 0.90f, 1.0f); glRasterPos2f(-0.95f, 0.80f); PrintString(tmp); if (iter->x_offset != 0 || iter->y_offset != 0) {