comparison libvo/vo_xmga.c @ 1637:248972c26eee

fixed mga uninit
author arpi
date Wed, 22 Aug 2001 21:34:27 +0000
parents d40f2b686846
children 5e4214a7540e
comparison
equal deleted inserted replaced
1636:3c33deb3e561 1637:248972c26eee
194 char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid"; 194 char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid";
195 195
196 f = open(devname,O_RDWR); 196 f = open(devname,O_RDWR);
197 if(f == -1) 197 if(f == -1)
198 { 198 {
199 perror("open");
199 printf("Couldn't open %s\n",devname); 200 printf("Couldn't open %s\n",devname);
200 return(-1); 201 return(-1);
201 } 202 }
202 203
203 switch(format) 204 switch(format)
337 338
338 static void 339 static void
339 uninit(void) 340 uninit(void)
340 { 341 {
341 saver_on(mDisplay); 342 saver_on(mDisplay);
342 ioctl( f,MGA_VID_OFF,0 ); 343 mga_uninit();
343 printf("vo: uninit!\n"); 344 printf("vo: uninit!\n");
344 } 345 }