示例#1
0
int sysdep_init(void)
{
   fprintf(stderr,
      "info: using FXmame v0.5 driver for xmame, written by Mike Oliphant\n");
   
   if (InitGlide()!=OSD_OK)
      return OSD_NOT_OK;
   if (vga_init())
      return OSD_NOT_OK;
   if (svga_input_init())
      return OSD_NOT_OK;
   
   return OSD_OK;
}
示例#2
0
int sysdep_display_init(void)
{
	memset(sysdep_display_properties.mode_info, 0,
	  SYSDEP_DISPLAY_VIDEO_MODES * sizeof(int));
        sysdep_display_properties.mode_info[0] =
          SYSDEP_DISPLAY_FULLSCREEN | SYSDEP_DISPLAY_EFFECTS;
        memset(sysdep_display_properties.mode_name, 0,
          SYSDEP_DISPLAY_VIDEO_MODES * sizeof(const char *));
        sysdep_display_properties.mode_name[0] = "SvgaLib";

        if (vga_init())
            return 1;

	return svga_input_init();
}