diff options
-rw-r--r-- | test/gui/pictureframe.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/gui/pictureframe.c b/test/gui/pictureframe.c index 9aa5639..2dcbec6 100644 --- a/test/gui/pictureframe.c +++ b/test/gui/pictureframe.c | |||
@@ -83,12 +83,14 @@ static void test_pictureframe() { | |||
83 | mode = WAITING_BUTTON_SHOW; | 83 | mode = WAITING_BUTTON_SHOW; |
84 | break; | 84 | break; |
85 | case RENDERING: | 85 | case RENDERING: |
86 | for (i = 0; i < frame ; ++i) { | 86 | for (i = 1; i <= frame ; ++i) { |
87 | pictureFrame1.canvas = rasterize(canvasSrc,canvasTarget,morphing,(TimeVector)(TIME_UNIT/frame)); | 87 | pictureFrame1.canvas = rasterize(canvasSrc,canvasTarget,morphing,(TimeVector)(i/(float)frame)); |
88 | pictureframe_draw_canvas(&pictureFrame1); | 88 | pictureframe_draw_canvas(&pictureFrame1); |
89 | MLV_actualise_window(); | 89 | MLV_actualise_window(); |
90 | printf("Rendering\n"); | 90 | MLV_wait_seconds(1); |
91 | } | 91 | } |
92 | mode = EXITING; | ||
93 | MLV_wait_seconds(15); | ||
92 | break; | 94 | break; |
93 | default: | 95 | default: |
94 | break; | 96 | break; |