mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-13 15:32:53 +01:00
remove some petty TODOs from vwebp.
they're rather low-prio anyway. Change-Id: I76dd74fcfb1c974c6f8a074472455d3f0b202e01
This commit is contained in:
parent
c245343dcb
commit
8052c585b3
@ -248,9 +248,9 @@ static void HandleKey(unsigned char key, int pos_x, int pos_y) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (key == 'i') {
|
} else if (key == 'i') {
|
||||||
|
// Note: doesn't handle refresh of animation's last-frame (it's quite
|
||||||
|
// more involved to do, since you need to save the previous frame).
|
||||||
kParams.print_info = 1 - kParams.print_info;
|
kParams.print_info = 1 - kParams.print_info;
|
||||||
// TODO(skal): handle refresh of animation's last-frame too. It's quite
|
|
||||||
// more involved though (need to save the previous frame).
|
|
||||||
if (!kParams.has_animation) ClearPreviousFrame();
|
if (!kParams.has_animation) ClearPreviousFrame();
|
||||||
glutPostRedisplay();
|
glutPostRedisplay();
|
||||||
} else if (key == 'd') {
|
} else if (key == 'd') {
|
||||||
@ -260,8 +260,8 @@ static void HandleKey(unsigned char key, int pos_x, int pos_y) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void HandleReshape(int width, int height) {
|
static void HandleReshape(int width, int height) {
|
||||||
// TODO(skal): should we preserve aspect ratio?
|
// Note: reshape doesn't preserve aspect ratio, and might
|
||||||
// Also: handle larger-than-screen pictures correctly.
|
// be handling larger-than-screen pictures incorrectly.
|
||||||
glViewport(0, 0, width, height);
|
glViewport(0, 0, width, height);
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user