mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-25 05:08:21 +01:00
user GLfloat instead of float
Change-Id: I1af65f9a6046835cd4d390f37ccb0e659016ba1d
This commit is contained in:
parent
b542611964
commit
41a6ced92e
@ -135,12 +135,12 @@ static void DrawCheckerBoard(void) {
|
||||
static void HandleDisplay(void) {
|
||||
const WebPDecBuffer* const pic = kParams.pic;
|
||||
const WebPIterator* const iter = &kParams.frameiter;
|
||||
double xoff, yoff;
|
||||
GLfloat xoff, yoff;
|
||||
if (pic == NULL) return;
|
||||
glPushMatrix();
|
||||
glPixelZoom(1, -1);
|
||||
xoff = 2. * iter->x_offset / kParams.canvas_width;
|
||||
yoff = 2. * iter->y_offset / kParams.canvas_height;
|
||||
xoff = (GLfloat)(2. * iter->x_offset / kParams.canvas_width);
|
||||
yoff = (GLfloat)(2. * iter->y_offset / kParams.canvas_height);
|
||||
glRasterPos2f(-1. + xoff, 1. - yoff);
|
||||
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
||||
glPixelStorei(GL_UNPACK_ROW_LENGTH, pic->u.RGBA.stride / 4);
|
||||
|
Loading…
Reference in New Issue
Block a user