}
DVFrameCallback video_callback(void) {
- primary->Blit(primary,video,NULL,0,0);
- // flip_it;
+ puts("callback flip");
+ flip_it;
return DFENUM_OK;
}
create_primary_surface();
- create_video_surface();
- // create_logo_surface();
+ // create_video_surface();
+ create_logo_surface();
get_primary_surface_size();
printf("primary surface width/height: %d/%d\n",screen_width,screen_height);
clear_screen(primary);
puts("main: blit video");
- blit_video();
- // blit_logo();
+ // blit_video();
+ blit_logo();
// puts("main: flip");
- // flip_it();
+ flip_it();
sleep(10);