--- SDL/src/render/nds/SDL_libgl2D.c 2012-02-15 17:54:57.526581372 +0000 +++ SDL/src/render/nds/SDL_libgl2D.c 2012-02-14 12:47:27.842076208 +0000 @@ -9,16 +9,19 @@ * Relminator 2010 * Richard Eric M. Lope BSN RN * * http://rel.betterwebber.com * * A very small and simple DS rendering lib using the 3d core to render 2D stuff */ +#include "SDL_config.h" +#if SDL_VIDEO_RENDER_NDS + #include "SDL_libgl2D.h" /* * Our static global variable used for Depth values since we cannot * disable depth testing in the DS hardware This value is incremented * for every draw call. */ v16 g_depth; int gCurrentTexture; @@ -303,8 +306,10 @@ gxTexcoord2i(u2, v2); gxVertex2i(x2, y2); gxTexcoord2i(u2, v1); gxVertex2i(x2, y1); glEnd(); glPopMatrix(1); g_depth++; } + +#endif /* SDL_VIDEO_RENDER_NDS */ --- SDL/src/render/nds/SDL_libgl2D.h 2012-02-15 17:54:57.526581372 +0000 +++ SDL/src/render/nds/SDL_libgl2D.h 2012-02-14 12:47:31.130034472 +0000 @@ -9,16 +9,19 @@ * Relminator 2010 * Richard Eric M. Lope BSN RN * * http://rel.betterwebber.com * * A very small and simple DS rendering lib using the 3d core to render 2D stuff */ +#include "SDL_config.h" +#if SDL_VIDEO_RENDER_NDS + #include /* LibGL extension(s) */ static inline void gxTexcoord2i(t16 u, t16 v) { GFX_TEX_COORD = (v << 20) | ((u << 4) & 0xFFFF); } @@ -143,8 +146,9 @@ /* * Draws a Filled Box * x1,y1 Top-Left coordinate of the box. * x2,y2 Bottom-Right coordinate of the box. * color RGB15/ARGB16 color. */ void glBoxFilled(int x1, int y1, int x2, int y2, int color); +#endif /* SDL_VIDEO_RENDER_NDS */