diff pytouhou/lib/_sdl.pxd @ 612:73f134f84c7f

Request a RGB888 context, since SDL2’s default of RGB332 sucks. On X11/GLX, it will select the first config available, that is the best one, while on EGL it will iterate over them to select the one closest to what the application requested. Of course, anything lower than RGB888 looks bad and we really don’t want that.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 26 Mar 2015 20:20:37 +0100
parents 19d930f9e3f0
children 80687f258001
line wrap: on
line diff
--- a/pytouhou/lib/_sdl.pxd
+++ b/pytouhou/lib/_sdl.pxd
@@ -38,6 +38,9 @@ cdef extern from "SDL_video.h" nogil:
         SDL_GL_CONTEXT_MINOR_VERSION
         SDL_GL_CONTEXT_PROFILE_MASK
         SDL_GL_DOUBLEBUFFER
+        SDL_GL_RED_SIZE
+        SDL_GL_GREEN_SIZE
+        SDL_GL_BLUE_SIZE
         SDL_GL_DEPTH_SIZE
 
     ctypedef enum SDL_GLprofile: