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.

41 lines
1.6 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/kasc/crimson/crimson_vidinit.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- /home/fizz/dev/games/crimson/tools/cfed.cpp Fri Apr 16 17:56:33 2004
  20. +++ ./tools/cfed.cpp Mon May 17 18:57:12 2004
  21. @@ -105,7 +105,7 @@
  22. char *uset = NULL, *tset = NULL;
  23. string outname;
  24. - if ( SDL_Init( SDL_INIT_VIDEO ) < 0 ) {
  25. + if ( SDL_Init( 0 ) < 0 ) {
  26. cerr << "Error: Could not init SDL. " << SDL_GetError() << endl;
  27. return 1;
  28. }
  29. --- /home/fizz/dev/games/crimson/src/common/surface.cpp Fri Feb 27 19:54:12 2004
  30. +++ ./src/common/surface.cpp Mon May 17 18:59:50 2004
  31. @@ -91,7 +91,7 @@
  32. int Surface::DisplayFormat( void ) {
  33. SDL_Surface *new_s;
  34. - if ( s_surface == 0 ) return -1;
  35. + if ( s_surface == 0 || !SDL_WasInit( SDL_INIT_VIDEO ) ) return -1;
  36. if ( (new_s = SDL_DisplayFormat( s_surface )) == 0 ) return -1;
  37. SDL_FreeSurface( s_surface );
  38. s_surface = new_s;