comparison src/video/x11/SDL_x11dyn.c @ 2118:238db749017a

Merged r3062:3063 from branches/SDL-1.2: clear inaccurate x11dyn error strings.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 13 Jun 2007 08:02:43 +0000
parents a344e42bce3b
children 2c835d58faad
comparison
equal deleted inserted replaced
2117:40888832d785 2118:238db749017a
165 165
166 #ifdef X_HAVE_UTF8_STRING 166 #ifdef X_HAVE_UTF8_STRING
167 X11_GetSym("XCreateIC", &SDL_X11_HAVE_UTF8, (void **) &pXCreateIC); 167 X11_GetSym("XCreateIC", &SDL_X11_HAVE_UTF8, (void **) &pXCreateIC);
168 #endif 168 #endif
169 169
170 if (!SDL_X11_HAVE_BASEXLIB) { /* some required symbol didn't load. */ 170 if (SDL_X11_HAVE_BASEXLIB) { /* all required symbols loaded. */
171 SDL_X11_UnloadSymbols(); /* in case something got loaded... */ 171 SDL_ClearError();
172 } else {
173 SDL_X11_UnloadSymbols(); /* in case something got loaded... */
172 rc = 0; 174 rc = 0;
173 } 175 }
174 } 176 }
175 #else 177 #else
176 #ifdef X_HAVE_UTF8_STRING 178 #ifdef X_HAVE_UTF8_STRING