src/video/gem/SDL_gemvideo.c
changeset 593 0136d21b7764
parent 557 0ce5a68278fd
child 736 028e03e273c8
equal deleted inserted replaced
592:1970e458070d 593:0136d21b7764
   103 
   103 
   104 /* GEM driver bootstrap functions */
   104 /* GEM driver bootstrap functions */
   105 
   105 
   106 static int GEM_Available(void)
   106 static int GEM_Available(void)
   107 {
   107 {
   108 	const char *envr = getenv("SDL_VIDEODRIVER");
       
   109 
       
   110 	/* Check if user asked a different video driver */
       
   111 	if ((envr) && (strcmp(envr, GEM_VID_DRIVER_NAME)!=0)) {
       
   112 		return 0;
       
   113 	}
       
   114 
       
   115 	/* Test if AES available */
   108 	/* Test if AES available */
   116 	if (appl_init() == -1)
   109 	if (appl_init() == -1)
   117 		return 0;
   110 		return 0;
   118 
   111 
   119 	appl_exit();
   112 	appl_exit();