comparison src/video/bwindow/SDL_sysvideo.cc @ 1572:3a8920cc822b

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Mar 2006 16:04:44 +0000
parents 8d9bb0cf2c2a
children e49147870aac c121d94672cb 678576473849
comparison
equal deleted inserted replaced
1571:0160eb7cccee 1572:3a8920cc822b
637 while (get_next_image_info(0,&cookie,&info) == B_OK) { 637 while (get_next_image_info(0,&cookie,&info) == B_OK) {
638 void *location = NULL; 638 void *location = NULL;
639 if (get_image_symbol((image_id)cookie,"glBegin",B_SYMBOL_TYPE_ANY,&location) == B_OK) { 639 if (get_image_symbol((image_id)cookie,"glBegin",B_SYMBOL_TYPE_ANY,&location) == B_OK) {
640 _this->gl_config.dll_handle = (void*)cookie; 640 _this->gl_config.dll_handle = (void*)cookie;
641 _this->gl_config.driver_loaded = 1; 641 _this->gl_config.driver_loaded = 1;
642 SDL_strncpy(_this->gl_config.driver_path, "libGL.so", sizeof(_this->gl_config.driver_path)-1); 642 SDL_strlcpy(_this->gl_config.driver_path, "libGL.so", SDL_arraysize(_this->gl_config.driver_path));
643 } 643 }
644 } 644 }
645 } 645 }
646 } else { 646 } else {
647 /* 647 /*
665 665
666 } 666 }
667 667
668 if ((_this->gl_config.dll_handle = (void*)load_add_on(path)) != (void*)B_ERROR) { 668 if ((_this->gl_config.dll_handle = (void*)load_add_on(path)) != (void*)B_ERROR) {
669 _this->gl_config.driver_loaded = 1; 669 _this->gl_config.driver_loaded = 1;
670 SDL_strncpy(_this->gl_config.driver_path, path, sizeof(_this->gl_config.driver_path)-1); 670 SDL_strlcpy(_this->gl_config.driver_path, path, SDL_arraysize(_this->gl_config.driver_path));
671 }*/ 671 }*/
672 } 672 }
673 673
674 if (_this->gl_config.dll_handle != NULL) { 674 if (_this->gl_config.dll_handle != NULL) {
675 return 0; 675 return 0;
676 } else { 676 } else {
677 _this->gl_config.dll_handle = NULL; 677 _this->gl_config.dll_handle = NULL;
678 _this->gl_config.driver_loaded = 0; 678 _this->gl_config.driver_loaded = 0;
679 SDL_strcpy(_this->gl_config.driver_path, ""); 679 *_this->gl_config.driver_path = '\0';
680 return -1; 680 return -1;
681 } 681 }
682 } 682 }
683 683
684 void* BE_GL_GetProcAddress(_THIS, const char *proc) 684 void* BE_GL_GetProcAddress(_THIS, const char *proc)