summaryrefslogtreecommitdiff
path: root/test/gui/pictureframe.c
diff options
context:
space:
mode:
authorAdam NAILI2017-12-31 17:37:47 +0100
committerAdam NAILI2017-12-31 17:37:47 +0100
commitf1d17a0bb9d1ba98cc94488ecbdb539f123b33ab (patch)
tree87cb3ab3d817418694a42ffbeca4a100f984fd57 /test/gui/pictureframe.c
parent41da8b54ed619ea869ca286cd8ec02e105e21c19 (diff)
downloadmorpher-f1d17a0bb9d1ba98cc94488ecbdb539f123b33ab.tar.gz
Continuing test to fix
Diffstat (limited to 'test/gui/pictureframe.c')
-rw-r--r--test/gui/pictureframe.c8
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;