From f3c74e076316d5d74e3deab6b80ff5d90dced989 Mon Sep 17 00:00:00 2001 From: hackbard Date: Tue, 25 Feb 2003 22:52:34 +0000 Subject: [PATCH] - --- dfb-photoshow.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dfb-photoshow.c b/dfb-photoshow.c index 0bc3ac4..c8858d4 100644 --- a/dfb-photoshow.c +++ b/dfb-photoshow.c @@ -116,7 +116,10 @@ int main(int argc,char **argv) { DFBCHECK(primary->StretchBlit(primary,logo,NULL,NULL)); } DFBCHECK(primary->Flip(primary,NULL,DSFLIP_WAITFORSYNC)); - DFBCHECK(k_buf->WaitForEventWithTimeout(k_buf,atoi(argv[1]),0)); + // k_buf->WaitForEventWithTimeout(k_buf,atoi(argv[1]),0); + DFBCHECK(k_buf->Reset(k_buf)); + DFBCHECK(k_buf->PostEvent(k_buf,DFB_EVENT(&k_event))); + sleep(atoi(argv[1])); logo->Release(logo); ++i; } @@ -131,4 +134,3 @@ int main(int argc,char **argv) { return 23; /* ;) */ } - -- 2.39.2