Made it possible to disable the rendering subsystem with configure --disable-render

This commit is contained in:
Sam Lantinga 2011-02-08 10:04:09 -08:00
parent 8f205278b1
commit 7133afac5f
15 changed files with 53 additions and 10 deletions

View file

@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#if !SDL_RENDER_DISABLED
#include "SDL_draw.h"
#include "SDL_blendfillrect.h"
@ -345,4 +347,6 @@ SDL_BlendFillRects(SDL_Surface * dst, const SDL_Rect ** rects, int count,
return status;
}
#endif /* !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View file

@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#if !SDL_RENDER_DISABLED
#include "SDL_draw.h"
#include "SDL_blendline.h"
#include "SDL_blendpoint.h"
@ -779,4 +781,6 @@ SDL_BlendLines(SDL_Surface * dst, const SDL_Point * points, int count,
return 0;
}
#endif /* !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View file

@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#if !SDL_RENDER_DISABLED
#include "SDL_draw.h"
#include "SDL_blendpoint.h"
@ -343,4 +345,6 @@ SDL_BlendPoints(SDL_Surface * dst, const SDL_Point * points, int count,
return status;
}
#endif /* !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View file

@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#if !SDL_RENDER_DISABLED
#include "SDL_draw.h"
#include "SDL_drawline.h"
#include "SDL_drawpoint.h"
@ -208,4 +210,6 @@ SDL_DrawLines(SDL_Surface * dst, const SDL_Point * points, int count,
return 0;
}
#endif /* !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View file

@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#if !SDL_RENDER_DISABLED
#include "SDL_draw.h"
#include "SDL_drawpoint.h"
@ -114,4 +116,6 @@ SDL_DrawPoints(SDL_Surface * dst, const SDL_Point * points, int count,
return 0;
}
#endif /* !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View file

@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#if !SDL_RENDER_DISABLED
#include "../SDL_sysrender.h"
#include "../../video/SDL_pixels_c.h"
@ -428,4 +430,6 @@ SW_DestroyRenderer(SDL_Renderer * renderer)
SDL_free(renderer);
}
#endif /* !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */