Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11render.c @ 4582:a17fbd25767b
It seems that the off-screen buffers (or pixmaps) only need to be cleared while initializing.
author | Sunny Sachanandani <sunnysachanandani@gmail.com> |
---|---|
date | Wed, 02 Jun 2010 11:55:40 +0530 |
parents | ef0aa488fff6 |
children | 5c925d4f220f |
comparison
equal
deleted
inserted
replaced
4581:ef0aa488fff6 | 4582:a17fbd25767b |
---|---|
1262 data->gc, rect->x, rect->y, rect->w, rect->h, | 1262 data->gc, rect->x, rect->y, rect->w, rect->h, |
1263 rect->x, rect->y); | 1263 rect->x, rect->y); |
1264 } | 1264 } |
1265 } | 1265 } |
1266 SDL_ClearDirtyRects(&data->dirty); | 1266 SDL_ClearDirtyRects(&data->dirty); |
1267 #ifdef SDL_VIDEO_DRIVER_X11_XRENDER | 1267 /*#ifdef SDL_VIDEO_DRIVER_X11_XRENDER |
1268 // Clear each pixmap after a render | 1268 // Clear each pixmap after a render |
1269 if(data->xrender_available == SDL_TRUE) { | 1269 if(data->xrender_available == SDL_TRUE) { |
1270 XRenderComposite(data->display, PictOpClear, data->drawable_pict, None, data->drawable_pict, | 1270 XRenderComposite(data->display, PictOpClear, data->drawable_pict, None, data->drawable_pict, |
1271 0, 0, 0, 0, 0, 0, renderer->window->w, renderer->window->h); | 1271 0, 0, 0, 0, 0, 0, renderer->window->w, renderer->window->h); |
1272 } | 1272 } |
1273 #endif | 1273 #endif*/ |
1274 } | 1274 } |
1275 XSync(data->display, False); | 1275 XSync(data->display, False); |
1276 | 1276 |
1277 /* Update the flipping chain, if any */ | 1277 /* Update the flipping chain, if any */ |
1278 if (renderer->info.flags & SDL_RENDERER_PRESENTFLIP2) { | 1278 if (renderer->info.flags & SDL_RENDERER_PRESENTFLIP2) { |