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

Commit

Permalink
Fixed compiling without XRender enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 28, 2010
1 parent 970ed3a commit 7114435
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/video/x11/SDL_x11render.c
Expand Up @@ -1038,7 +1038,7 @@ X11_QueryTexturePixels(SDL_Renderer * renderer, SDL_Texture * texture,
static int
X11_SetTextureRGBAMod(SDL_Renderer * renderer, SDL_Texture * texture)
{

#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
X11_TextureData *data = (X11_TextureData *) texture->driverdata;
X11_RenderData *renderdata = (X11_RenderData *) renderer->driverdata;

Expand Down Expand Up @@ -1094,11 +1094,14 @@ X11_SetTextureRGBAMod(SDL_Renderer * renderer, SDL_Texture * texture)
}

return 0;
}
else {
} else {
SDL_Unsupported();
return -1;
}
#else
SDL_Unsupported();
return -1;
#endif
}

static int
Expand Down Expand Up @@ -1314,6 +1317,7 @@ renderdrawcolor(SDL_Renderer * renderer, int premult)
return SDL_MapRGBA(&data->format, r, g, b, a);
}

#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
static XRenderColor
xrenderdrawcolor(SDL_Renderer *renderer)
{
Expand All @@ -1328,6 +1332,7 @@ xrenderdrawcolor(SDL_Renderer *renderer)
}
return xrender_color;
}
#endif

static int
X11_RenderDrawPoints(SDL_Renderer * renderer, const SDL_Point * points,
Expand Down

0 comments on commit 7114435

Please sign in to comment.