Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11render.c @ 4458:c9584df65367
Removed unused variables
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 09 May 2010 15:46:19 -0700 |
parents | f7b03b6838cb |
children | 791b3256fb22 97dcf6f6213c |
comparison
equal
deleted
inserted
replaced
4457:5e1f9cb9fa98 | 4458:c9584df65367 |
---|---|
149 } | 149 } |
150 | 150 |
151 void | 151 void |
152 X11_AddRenderDriver(_THIS) | 152 X11_AddRenderDriver(_THIS) |
153 { | 153 { |
154 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; | |
155 SDL_RendererInfo *info = &X11_RenderDriver.info; | 154 SDL_RendererInfo *info = &X11_RenderDriver.info; |
156 SDL_DisplayMode *mode = &SDL_CurrentDisplay->desktop_mode; | 155 SDL_DisplayMode *mode = &SDL_CurrentDisplay->desktop_mode; |
157 int i; | 156 int i; |
158 | 157 |
159 info->texture_formats[info->num_texture_formats++] = mode->format; | 158 info->texture_formats[info->num_texture_formats++] = mode->format; |
173 { | 172 { |
174 SDL_VideoDisplay *display = window->display; | 173 SDL_VideoDisplay *display = window->display; |
175 SDL_DisplayData *displaydata = (SDL_DisplayData *) display->driverdata; | 174 SDL_DisplayData *displaydata = (SDL_DisplayData *) display->driverdata; |
176 SDL_WindowData *windowdata = (SDL_WindowData *) window->driverdata; | 175 SDL_WindowData *windowdata = (SDL_WindowData *) window->driverdata; |
177 SDL_Renderer *renderer; | 176 SDL_Renderer *renderer; |
178 SDL_RendererInfo *info; | |
179 X11_RenderData *data; | 177 X11_RenderData *data; |
180 XGCValues gcv; | 178 XGCValues gcv; |
181 int i, n; | 179 int i, n; |
182 int bpp; | 180 int bpp; |
183 Uint32 Rmask, Gmask, Bmask, Amask; | 181 Uint32 Rmask, Gmask, Bmask, Amask; |
656 X11_RenderDrawLines(SDL_Renderer * renderer, const SDL_Point * points, | 654 X11_RenderDrawLines(SDL_Renderer * renderer, const SDL_Point * points, |
657 int count) | 655 int count) |
658 { | 656 { |
659 X11_RenderData *data = (X11_RenderData *) renderer->driverdata; | 657 X11_RenderData *data = (X11_RenderData *) renderer->driverdata; |
660 SDL_Window *window = renderer->window; | 658 SDL_Window *window = renderer->window; |
661 SDL_Rect clip, rect; | 659 SDL_Rect clip; |
662 unsigned long foreground; | 660 unsigned long foreground; |
663 XPoint *xpoints, *xpoint; | 661 XPoint *xpoints, *xpoint; |
664 int i, xcount; | 662 int i, xcount; |
665 int minx, miny; | 663 int minx, miny; |
666 int maxx, maxy; | 664 int maxx, maxy; |
915 SDL_PixelFormat fmt; | 913 SDL_PixelFormat fmt; |
916 SDL_Rect rect; | 914 SDL_Rect rect; |
917 XImage *image = texturedata->scaling_image; | 915 XImage *image = texturedata->scaling_image; |
918 | 916 |
919 if (!image) { | 917 if (!image) { |
920 int depth; | |
921 void *pixels; | 918 void *pixels; |
922 int pitch; | 919 int pitch; |
923 | 920 |
924 pitch = dstrect->w * SDL_BYTESPERPIXEL(texturedata->format); | 921 pitch = dstrect->w * SDL_BYTESPERPIXEL(texturedata->format); |
925 pixels = SDL_malloc(dstrect->h * pitch); | 922 pixels = SDL_malloc(dstrect->h * pitch); |