comparison src/video/x11/SDL_x11render.c @ 3066:8cbf68bdf81b

Fixed destination of XCopyArea()
author Sam Lantinga <slouken@libsdl.org>
date Sun, 15 Feb 2009 06:12:52 +0000
parents b36579172f27
children ab5aebd50add
comparison
equal deleted inserted replaced
3065:a728b8b779d1 3066:8cbf68bdf81b
681 texturedata->image, srcrect->x, srcrect->y, dstrect->x, 681 texturedata->image, srcrect->x, srcrect->y, dstrect->x,
682 dstrect->y, srcrect->w, srcrect->h); 682 dstrect->y, srcrect->w, srcrect->h);
683 } else { 683 } else {
684 XCopyArea(data->display, texturedata->pixmap, data->drawable, 684 XCopyArea(data->display, texturedata->pixmap, data->drawable,
685 data->gc, srcrect->x, srcrect->y, dstrect->w, 685 data->gc, srcrect->x, srcrect->y, dstrect->w,
686 dstrect->h, srcrect->x, srcrect->y); 686 dstrect->h, dstrect->x, dstrect->y);
687 } 687 }
688 } else if (texturedata->yuv 688 } else if (texturedata->yuv
689 || texture->access == SDL_TEXTUREACCESS_STREAMING) { 689 || texture->access == SDL_TEXTUREACCESS_STREAMING) {
690 SDL_Surface src, dst; 690 SDL_Surface src, dst;
691 SDL_PixelFormat fmt; 691 SDL_PixelFormat fmt;