Remove some redundant code.
authorSunny Sachanandani <sunnysachanandani@gmail.com>
Sat, 17 Jul 2010 15:41:34 +0530
changeset 4594 f28c23cc1a08
parent 4593 3892fe2f6537
child 4595 73eeadf7ed8e
Remove some redundant code.
src/video/x11/SDL_x11render.c
--- a/src/video/x11/SDL_x11render.c	Sat Jul 17 15:38:24 2010 +0530
+++ b/src/video/x11/SDL_x11render.c	Sat Jul 17 15:41:34 2010 +0530
@@ -1443,24 +1443,6 @@
                          srcrect->x, srcrect->y, dstrect->x, dstrect->y,
                          srcrect->w, srcrect->h);
         } else {
-            /*Pixmap scaling_pixmap = 
-                XCreatePixmap(data->display, texturedata->pixmap, dstrect->w, dstrect->h,
-                              data->depth);
-            if (!scaling_pixmap) {
-                SDL_SetError("XCreatePixmap() failed");
-                return -1;
-            }
-            Picture scaling_picture =
-                XRenderCreatePicture(data->display, scaling_pixmap, texturedata->picture_fmt,
-                                     0, NULL);
-            if (!scaling_picture) {
-                SDL_SetError("XRenderCreatePicture() failed");
-                return -1;
-            }
-            XRenderComposite(data->display, PictOpClear, scaling_picture, None, scaling_picture,
-                             0, 0, 0, 0, 0, 0, dstrect->w, dstrect->h);
-            XRenderComposite(data->display, PictOpSrc, texturedata->picture, pict, scaling_picture,
-                             srcrect->x, srcrect->y, 0, 0, 0, 0, srcrect->w, srcrect->h);*/
             double xscale = ((double) dstrect->w) / srcrect->w;
             double yscale = ((double) dstrect->h) / srcrect->h;
             XTransform xform = {{
@@ -1479,9 +1461,6 @@
                     {XDoubleToFixed(0), XDoubleToFixed(1), XDoubleToFixed(0)},
                     {XDoubleToFixed(0), XDoubleToFixed(0), XDoubleToFixed(1)}}};
             XRenderSetPictureTransform(data->display, texturedata->picture, &identity);
-
-            /*XRenderFreePicture(data->display, scaling_picture);
-            XFreePixmap(data->display, scaling_pixmap);*/
         }
     }
     else