]> hackdaworld.org Git - my-code/dfb-photoshow.git/commitdiff
-
authorhackbard <hackbard>
Tue, 25 Feb 2003 22:52:34 +0000 (22:52 +0000)
committerhackbard <hackbard>
Tue, 25 Feb 2003 22:52:34 +0000 (22:52 +0000)
dfb-photoshow.c

index 0bc3ac4552e9a1176f050ef5c2506b7e0e11177e..c8858d4ef181eaed14ec587612e966daaba2a135 100644 (file)
@@ -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; /* ;) */
 }
-