comparison libvo/vo_vesa.c @ 4746:cbce019d2d94

Change order of vo_function calls (Although it doesn't matter for now).
author nick
date Sun, 17 Feb 2002 17:18:05 +0000
parents a2df307ed979
children e01c664def74
comparison
equal deleted inserted replaced
4745:398e3663ed71 4746:cbce019d2d94
949 #ifdef HAVE_PNG 949 #ifdef HAVE_PNG
950 static int vesa_screenshot(const char *fname) 950 static int vesa_screenshot(const char *fname)
951 { 951 {
952 uint32_t i,n; 952 uint32_t i,n;
953 uint8_t *ptrs[video_mode_info.YResolution]; 953 uint8_t *ptrs[video_mode_info.YResolution];
954 if(video_out_png.preinit(NULL))
955 {
956 printf("\nvo_vesa: can't preinit vo_png\n");
957 return 1;
958 }
954 if(!video_out_png.control(VOCTRL_QUERY_FORMAT, &dstFourcc)) 959 if(!video_out_png.control(VOCTRL_QUERY_FORMAT, &dstFourcc))
955 { 960 {
956 printf("\nvo_vesa: vo_png doesn't support: %s fourcc\n",vo_format_name(dstFourcc)); 961 printf("\nvo_vesa: vo_png doesn't support: %s fourcc\n",vo_format_name(dstFourcc));
957 return 1;
958 }
959 if(video_out_png.preinit(NULL))
960 {
961 printf("\nvo_vesa: can't preinit vo_png\n");
962 return 1; 962 return 1;
963 } 963 }
964 if(video_out_png.config(HAS_DGA()?video_mode_info.XResolution:dstW, 964 if(video_out_png.config(HAS_DGA()?video_mode_info.XResolution:dstW,
965 HAS_DGA()?video_mode_info.YResolution:dstH, 965 HAS_DGA()?video_mode_info.YResolution:dstH,
966 HAS_DGA()?video_mode_info.XResolution:dstW, 966 HAS_DGA()?video_mode_info.XResolution:dstW,