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 9dbc234ea087
children 4ce3ef053a25
line wrap: on
line diff
--- a/pytouhou/lib/sdl.pxd
+++ b/pytouhou/lib/sdl.pxd
@@ -19,6 +19,9 @@ cdef SDL_GLattr GL_CONTEXT_MAJOR_VERSION
 cdef SDL_GLattr GL_CONTEXT_MINOR_VERSION
 cdef SDL_GLattr GL_CONTEXT_PROFILE_MASK
 cdef SDL_GLattr GL_DOUBLEBUFFER
+cdef SDL_GLattr GL_RED_SIZE
+cdef SDL_GLattr GL_GREEN_SIZE
+cdef SDL_GLattr GL_BLUE_SIZE
 cdef SDL_GLattr GL_DEPTH_SIZE
 
 cdef SDL_GLprofile GL_CONTEXT_PROFILE_CORE