Commits

Anonymous committed 479526f

no message

Comments (0)

Files changed (2)

         line = origsetup.readline()
         if not line: break
         if line.startswith('SDL = '):
-            line = 'SDL = ' + flags
+            line = 'SDL = ' + flags + '\n'
         newsetup.write(line)
     
 
 
 	VIDEO_INIT_CHECK();
 
+	if(!depth)
+		flags |= SDL_ANYFORMAT;
+
 	surf = SDL_SetVideoMode(w, h, depth, flags);
 	if(!surf)
 		return RAISE(PyExc_SDLError, SDL_GetError());