comparison libvo/vo_mga.c @ 616:41d6eec69b60

clean up
author pontscho
date Tue, 24 Apr 2001 11:42:04 +0000
parents f83ec60bce49
children 5cbbca64a5c9
comparison
equal deleted inserted replaced
615:b96e45bcb178 616:41d6eec69b60
38 #include <unistd.h> 38 #include <unistd.h>
39 #include <fcntl.h> 39 #include <fcntl.h>
40 #include <sys/mman.h> 40 #include <sys/mman.h>
41 41
42 #include "drivers/mga_vid.h" 42 #include "drivers/mga_vid.h"
43 #include "sub.h"
43 44
44 static vo_info_t vo_info = 45 static vo_info_t vo_info =
45 { 46 {
46 "Matrox G200/G400 overlay (/dev/mga_vid)", 47 "Matrox G200/G400 overlay (/dev/mga_vid)",
47 "mga", 48 "mga",
109 { 110 {
110 ioctl( f,MGA_VID_OFF,0 ); 111 ioctl( f,MGA_VID_OFF,0 );
111 printf("vo: uninit!\n"); 112 printf("vo: uninit!\n");
112 } 113 }
113 114
114 extern void vo_draw_text(int dxs,int dys,void (*draw_alpha)(int x0,int y0,
115 int w,int h, unsigned char* src, unsigned char *srca,
116 int stride));
117
118 static void flip_page(void) 115 static void flip_page(void)
119 { 116 {
120 vo_draw_text(mga_vid_config.src_width,mga_vid_config.src_height,draw_alpha); 117 vo_draw_text(mga_vid_config.src_width,mga_vid_config.src_height,draw_alpha);
121 vo_mga_flip_page(); 118 vo_mga_flip_page();
122 } 119 }