Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11render.c @ 3520:83518f8fcd61
Fixed calls to SDL_AddRenderDriver()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 04 Dec 2009 08:45:08 +0000 |
parents | ab5aebd50add |
children | a1896642a47e |
comparison
equal
deleted
inserted
replaced
3519:1374f9275de9 | 3520:83518f8fcd61 |
---|---|
142 X11_AddRenderDriver(_THIS) | 142 X11_AddRenderDriver(_THIS) |
143 { | 143 { |
144 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; | 144 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; |
145 SDL_RendererInfo *info = &X11_RenderDriver.info; | 145 SDL_RendererInfo *info = &X11_RenderDriver.info; |
146 SDL_DisplayMode *mode = &SDL_CurrentDisplay.desktop_mode; | 146 SDL_DisplayMode *mode = &SDL_CurrentDisplay.desktop_mode; |
147 int i; | |
147 | 148 |
148 info->texture_formats[info->num_texture_formats++] = mode->format; | 149 info->texture_formats[info->num_texture_formats++] = mode->format; |
149 info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_YV12; | 150 info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_YV12; |
150 info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_IYUV; | 151 info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_IYUV; |
151 info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_YUY2; | 152 info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_YUY2; |
152 info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_UYVY; | 153 info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_UYVY; |
153 info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_YVYU; | 154 info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_YVYU; |
154 | 155 |
155 SDL_AddRenderDriver(0, &X11_RenderDriver); | 156 for (i = 0; i < _this->num_displays; ++i) { |
157 SDL_AddRenderDriver(&_this->displays[i], &X11_RenderDriver); | |
158 } | |
156 } | 159 } |
157 | 160 |
158 SDL_Renderer * | 161 SDL_Renderer * |
159 X11_CreateRenderer(SDL_Window * window, Uint32 flags) | 162 X11_CreateRenderer(SDL_Window * window, Uint32 flags) |
160 { | 163 { |