mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
804 B

  1. --- /home/fizz/dev/games/crimson/tools/cfed.cpp Fri Apr 16 17:56:33 2004
  2. +++ ./tools/cfed.cpp Mon May 17 18:57:12 2004
  3. @@ -105,7 +105,7 @@
  4. char *uset = NULL, *tset = NULL;
  5. string outname;
  6. - if ( SDL_Init( SDL_INIT_VIDEO ) < 0 ) {
  7. + if ( SDL_Init( 0 ) < 0 ) {
  8. cerr << "Error: Could not init SDL. " << SDL_GetError() << endl;
  9. return 1;
  10. }
  11. --- /home/fizz/dev/games/crimson/src/common/surface.cpp Fri Feb 27 19:54:12 2004
  12. +++ ./src/common/surface.cpp Mon May 17 18:59:50 2004
  13. @@ -91,7 +91,7 @@
  14. int Surface::DisplayFormat( void ) {
  15. SDL_Surface *new_s;
  16. - if ( s_surface == 0 ) return -1;
  17. + if ( s_surface == 0 || !SDL_WasInit( SDL_INIT_VIDEO ) ) return -1;
  18. if ( (new_s = SDL_DisplayFormat( s_surface )) == 0 ) return -1;
  19. SDL_FreeSurface( s_surface );
  20. s_surface = new_s;