diff src/video/x11/SDL_x11render.c @ 4599:ce0643707bb0 experimental

Minor changes.
author Sunny Sachanandani <sunnysachanandani@gmail.com>
date Sun, 18 Jul 2010 18:42:33 +0530
parents 66e13a224bd6
children
line wrap: on
line diff
--- a/src/video/x11/SDL_x11render.c	Sun Jul 18 18:27:38 2010 +0530
+++ b/src/video/x11/SDL_x11render.c	Sun Jul 18 18:42:33 2010 +0530
@@ -32,7 +32,7 @@
 #include "../SDL_yuv_sw_c.h"
 #include "SDL_surface.h"
 
-//#define EXPT
+#define EXPT
 
 /* X11 renderer implementation */
 
@@ -1059,7 +1059,7 @@
         }
         SDL_AddDirtyRect(&data->dirty, &rect);
     }
-/*
+
 #ifdef SDL_VIDEO_DRIVER_X11_XRENDER
 #ifndef NO_SHARED_MEMORY
 #ifdef EXPT
@@ -1078,7 +1078,7 @@
 #endif
 #endif
 #endif
-*/
+
     {
         xpoint = xpoints = SDL_stack_alloc(XPoint, count);
         xcount = 0;
@@ -1093,7 +1093,7 @@
             ++xpoint;
             ++xcount;
         }
-/*
+
 #ifdef SDL_VIDEO_DRIVER_X11_XRENDER
         if (data->use_xrender) {
             XSetForeground(data->display, data->stencil_gc, 0x00);
@@ -1103,9 +1103,9 @@
             XDrawPoints(data->display, data->stencil, data->stencil_gc, xpoints, xcount,
                         CoordModeOrigin);
         }
-#endif*/
+#endif
     }
-/*
+
 #ifdef SDL_VIDEO_DRIVER_X11_XRENDER
     if (data->use_xrender) {
         XRenderColor foreground;
@@ -1118,7 +1118,7 @@
     }
     else
 #endif
-*/
+
     {
         unsigned long foreground = renderdrawcolor(renderer, 1);
         XSetForeground(data->display, data->gc, foreground);
@@ -1152,7 +1152,7 @@
     clip.y = 0;
     clip.w = window->w;
     clip.h = window->h;
-/*
+
 #ifdef SDL_VIDEO_DRIVER_X11_XRENDER
 #ifndef NO_SHARED_MEMORY
 #ifdef EXPT
@@ -1171,11 +1171,11 @@
 #endif
 #endif
 #endif
-*/
+
     {
         Pixmap drawable;
         GC gc;
-/*
+
 #ifdef SDL_VIDEO_DRIVER_X11_XRENDER
         if (data->use_xrender) {
             drawable = data->stencil;
@@ -1187,7 +1187,7 @@
         }
         else
 #endif
-*/
+
         {
             drawable = data->drawable;
             gc = data->gc;
@@ -1310,7 +1310,7 @@
             }
         }
     }
-/*
+
 #ifdef SDL_VIDEO_DRIVER_X11_XRENDER
     if (data->use_xrender) {
         XRenderColor xrforeground = xrenderdrawcolor(renderer);
@@ -1321,7 +1321,7 @@
                          0, 0, 0, 0, 0, 0, window->w, window->h);
     }
 #endif
-*/
+
     SDL_stack_free(xpoints);
 
     return 0;
@@ -1342,7 +1342,7 @@
     clip.y = 0;
     clip.w = window->w;
     clip.h = window->h;
-/*
+
 #ifdef SDL_VIDEO_DRIVER_X11_XRENDER
 #ifndef NO_SHARED_MEMORY
 #ifdef EXPT
@@ -1362,7 +1362,7 @@
 #endif
 #endif
 #endif
-*/
+
     {
 
         for (i = 0; i < count; ++i) {
@@ -1381,7 +1381,7 @@
                 SDL_AddDirtyRect(&data->dirty, &rect);
             }
         }
-/*
+
 #ifdef SDL_VIDEO_DRIVER_X11_XRENDER
         if (data->use_xrender) {
             XSetForeground(data->display, data->stencil_gc, 0x00);
@@ -1392,9 +1392,9 @@
             XDrawRectangles(data->display, data->stencil, data->stencil_gc, xrects, xcount);
         }
 #endif
-*/
+
     }
-/*
+
 #ifdef SDL_VIDEO_DRIVER_X11_XRENDER
     if (data->use_xrender) {
         XRenderColor foreground;
@@ -1408,7 +1408,7 @@
     }
     else
 #endif
-*/
+
     {
         unsigned long foreground;