]> www.hackdaworld.org Git - my-code/ivac.git/commitdiff
-
authorhackbard <hackbard>
Thu, 27 Feb 2003 16:03:59 +0000 (16:03 +0000)
committerhackbard <hackbard>
Thu, 27 Feb 2003 16:03:59 +0000 (16:03 +0000)
dfb_api.c

index 8ed8fd3371219259b26a414835f079befb372a58..6f28b59a900716d8ba68c40e30cf6a637e0aeda8 100644 (file)
--- a/dfb_api.c
+++ b/dfb_api.c
@@ -150,8 +150,8 @@ int flip_it(void) {
 }
 
 DVFrameCallback video_callback(void) {
 }
 
 DVFrameCallback video_callback(void) {
- primary->Blit(primary,video,NULL,0,0);
// flip_it;
+ puts("callback flip");
+ flip_it;
  return DFENUM_OK;
 }
 
  return DFENUM_OK;
 }
 
@@ -164,8 +164,8 @@ int main (int argc, char **argv) {
 
  create_primary_surface();
 
 
  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);
 
  get_primary_surface_size();
  printf("primary surface width/height: %d/%d\n",screen_width,screen_height);
@@ -173,11 +173,11 @@ int main (int argc, char **argv) {
  clear_screen(primary);
 
  puts("main: blit video");
  clear_screen(primary);
 
  puts("main: blit video");
- blit_video();
// blit_logo();
// blit_video();
+ blit_logo();
 
  // puts("main: flip");
 
  // puts("main: flip");
// flip_it();
+ flip_it();
 
  sleep(10);
 
 
  sleep(10);