Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11modes.c @ 4591:1e998db9b597
Implement blending modes for textures. Fix off-screen pixmaps to be ARGB rather than RGB to enable blending across frames. Clear the screen and off-screen pixmaps when the renderer is created.
author | Sunny Sachanandani <sunnysachanandani@gmail.com> |
---|---|
date | Wed, 14 Jul 2010 19:17:11 +0530 |
parents | 1ad70fb49fcb |
children | 3892fe2f6537 |
comparison
equal
deleted
inserted
replaced
4590:1ad70fb49fcb | 4591:1e998db9b597 |
---|---|
47 *vinfo = *vi; | 47 *vinfo = *vi; |
48 XFree(vi); | 48 XFree(vi); |
49 return 0; | 49 return 0; |
50 } | 50 } |
51 } | 51 } |
52 #ifdef SDL_VIDEO_DRIVER_X11_XRENDER | 52 /*#ifdef SDL_VIDEO_DRIVER_X11_XRENDER |
53 depth = 32; | 53 depth = 32; |
54 long vinfo_mask; | 54 long vinfo_mask; |
55 XVisualInfo vinfo_templ; | 55 XVisualInfo vinfo_templ; |
56 vinfo_mask = (VisualDepthMask | VisualRedMaskMask | VisualGreenMaskMask | VisualBlueMaskMask); | 56 vinfo_mask = (VisualDepthMask | VisualRedMaskMask | VisualGreenMaskMask | VisualBlueMaskMask); |
57 vinfo_templ.depth = 32; | 57 vinfo_templ.depth = 32; |
62 if(vi) { | 62 if(vi) { |
63 *vinfo = *vi; | 63 *vinfo = *vi; |
64 XFree(vi); | 64 XFree(vi); |
65 return 0; | 65 return 0; |
66 } | 66 } |
67 #endif | 67 #endif*/ |
68 depth = DefaultDepth(display, screen); | 68 depth = DefaultDepth(display, screen); |
69 if ((X11_UseDirectColorVisuals() && | 69 if ((X11_UseDirectColorVisuals() && |
70 XMatchVisualInfo(display, screen, depth, DirectColor, vinfo)) || | 70 XMatchVisualInfo(display, screen, depth, DirectColor, vinfo)) || |
71 XMatchVisualInfo(display, screen, depth, TrueColor, vinfo) || | 71 XMatchVisualInfo(display, screen, depth, TrueColor, vinfo) || |
72 XMatchVisualInfo(display, screen, depth, PseudoColor, vinfo) || | 72 XMatchVisualInfo(display, screen, depth, PseudoColor, vinfo) || |