Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyps committed Jul 18, 2010
1 parent 015c4dd commit 2e9df2a
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/video/x11/SDL_x11render.c
Expand Up @@ -32,7 +32,7 @@
#include "../SDL_yuv_sw_c.h"
#include "SDL_surface.h"

//#define EXPT
#define EXPT

/* X11 renderer implementation */

Expand Down Expand Up @@ -1059,7 +1059,7 @@ X11_RenderDrawPoints(SDL_Renderer * renderer, const SDL_Point * points,
}
SDL_AddDirtyRect(&data->dirty, &rect);
}
/*

#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
#ifndef NO_SHARED_MEMORY
#ifdef EXPT
Expand All @@ -1078,7 +1078,7 @@ X11_RenderDrawPoints(SDL_Renderer * renderer, const SDL_Point * points,
#endif
#endif
#endif
*/

{
xpoint = xpoints = SDL_stack_alloc(XPoint, count);
xcount = 0;
Expand All @@ -1093,7 +1093,7 @@ X11_RenderDrawPoints(SDL_Renderer * renderer, const SDL_Point * points,
++xpoint;
++xcount;
}
/*

#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
if (data->use_xrender) {
XSetForeground(data->display, data->stencil_gc, 0x00);
Expand All @@ -1103,9 +1103,9 @@ X11_RenderDrawPoints(SDL_Renderer * renderer, const SDL_Point * points,
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;
Expand All @@ -1118,7 +1118,7 @@ X11_RenderDrawPoints(SDL_Renderer * renderer, const SDL_Point * points,
}
else
#endif
*/

{
unsigned long foreground = renderdrawcolor(renderer, 1);
XSetForeground(data->display, data->gc, foreground);
Expand Down Expand Up @@ -1152,7 +1152,7 @@ X11_RenderDrawLines(SDL_Renderer * renderer, const SDL_Point * points,
clip.y = 0;
clip.w = window->w;
clip.h = window->h;
/*

#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
#ifndef NO_SHARED_MEMORY
#ifdef EXPT
Expand All @@ -1171,11 +1171,11 @@ X11_RenderDrawLines(SDL_Renderer * renderer, const SDL_Point * points,
#endif
#endif
#endif
*/

{
Pixmap drawable;
GC gc;
/*

#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
if (data->use_xrender) {
drawable = data->stencil;
Expand All @@ -1187,7 +1187,7 @@ X11_RenderDrawLines(SDL_Renderer * renderer, const SDL_Point * points,
}
else
#endif
*/

{
drawable = data->drawable;
gc = data->gc;
Expand Down Expand Up @@ -1310,7 +1310,7 @@ X11_RenderDrawLines(SDL_Renderer * renderer, const SDL_Point * points,
}
}
}
/*

#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
if (data->use_xrender) {
XRenderColor xrforeground = xrenderdrawcolor(renderer);
Expand All @@ -1321,7 +1321,7 @@ X11_RenderDrawLines(SDL_Renderer * renderer, const SDL_Point * points,
0, 0, 0, 0, 0, 0, window->w, window->h);
}
#endif
*/

SDL_stack_free(xpoints);

return 0;
Expand All @@ -1342,7 +1342,7 @@ X11_RenderDrawRects(SDL_Renderer * renderer, const SDL_Rect ** rects, int count)
clip.y = 0;
clip.w = window->w;
clip.h = window->h;
/*

#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
#ifndef NO_SHARED_MEMORY
#ifdef EXPT
Expand All @@ -1362,7 +1362,7 @@ X11_RenderDrawRects(SDL_Renderer * renderer, const SDL_Rect ** rects, int count)
#endif
#endif
#endif
*/

{

for (i = 0; i < count; ++i) {
Expand All @@ -1381,7 +1381,7 @@ X11_RenderDrawRects(SDL_Renderer * renderer, const SDL_Rect ** rects, int count)
SDL_AddDirtyRect(&data->dirty, &rect);
}
}
/*

#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
if (data->use_xrender) {
XSetForeground(data->display, data->stencil_gc, 0x00);
Expand All @@ -1392,9 +1392,9 @@ X11_RenderDrawRects(SDL_Renderer * renderer, const SDL_Rect ** rects, int count)
XDrawRectangles(data->display, data->stencil, data->stencil_gc, xrects, xcount);
}
#endif
*/

}
/*

#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
if (data->use_xrender) {
XRenderColor foreground;
Expand All @@ -1408,7 +1408,7 @@ X11_RenderDrawRects(SDL_Renderer * renderer, const SDL_Rect ** rects, int count)
}
else
#endif
*/

{
unsigned long foreground;

Expand Down

0 comments on commit 2e9df2a

Please sign in to comment.