From f1d17a0bb9d1ba98cc94488ecbdb539f123b33ab Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Sun, 31 Dec 2017 17:37:47 +0100 Subject: Continuing test to fix --- test/gui/pictureframe.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/gui') 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() { mode = WAITING_BUTTON_SHOW; break; case RENDERING: - for (i = 0; i < frame ; ++i) { - pictureFrame1.canvas = rasterize(canvasSrc,canvasTarget,morphing,(TimeVector)(TIME_UNIT/frame)); + for (i = 1; i <= frame ; ++i) { + pictureFrame1.canvas = rasterize(canvasSrc,canvasTarget,morphing,(TimeVector)(i/(float)frame)); pictureframe_draw_canvas(&pictureFrame1); MLV_actualise_window(); - printf("Rendering\n"); + MLV_wait_seconds(1); } + mode = EXITING; + MLV_wait_seconds(15); break; default: break; -- cgit v1.2.3