projects
/
my-code
/
dfb-photoshow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f3c74e0
)
-
author
hackbard
<hackbard>
Wed, 26 Feb 2003 01:40:04 +0000
(
01:40
+0000)
committer
hackbard
<hackbard>
Wed, 26 Feb 2003 01:40:04 +0000
(
01:40
+0000)
dfb-photoshow.c
patch
|
blob
|
history
diff --git
a/dfb-photoshow.c
b/dfb-photoshow.c
index
c8858d4
..
ea96f8a
100644
(file)
--- a/
dfb-photoshow.c
+++ b/
dfb-photoshow.c
@@
-116,10
+116,12
@@
int main(int argc,char **argv) {
DFBCHECK(primary->StretchBlit(primary,logo,NULL,NULL));
}
DFBCHECK(primary->Flip(primary,NULL,DSFLIP_WAITFORSYNC));
DFBCHECK(primary->StretchBlit(primary,logo,NULL,NULL));
}
DFBCHECK(primary->Flip(primary,NULL,DSFLIP_WAITFORSYNC));
- // 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]));
+ k_buf->WaitForEventWithTimeout(k_buf,atoi(argv[1]),0);
+ // sleep(atoi(argv[1]));
+ if(k_buf->HasEvent(k_buf)!=DFB_OK) {
+ k_event.key_id=DIKI_A;
+ DFBCHECK(k_buf->PostEvent(k_buf,DFB_EVENT(&k_event)));
+ }
logo->Release(logo);
++i;
}
logo->Release(logo);
++i;
}