Commits

pygame  committed 479526f

no message

  • Participants
  • Parent commits 456acf5

Comments (0)

Files changed (2)

File config_unix.py

         line = origsetup.readline()
         if not line: break
         if line.startswith('SDL = '):
-            line = 'SDL = ' + flags
+            line = 'SDL = ' + flags + '\n'
         newsetup.write(line)
     
 

File src/display.c

 
 	VIDEO_INIT_CHECK();
 
+	if(!depth)
+		flags |= SDL_ANYFORMAT;
+
 	surf = SDL_SetVideoMode(w, h, depth, flags);
 	if(!surf)
 		return RAISE(PyExc_SDLError, SDL_GetError());