Today I spent some time creating some primitive graphic functions using SDL, here is a quick code snippet:
/* GFX_Rect (SDL_Surface, X, Y, X2, Y2, Color)
Usage: Draws a hollow rectangle in specified color on specified Surface
SDL_Surface: The Surface to draw on
X,Y: Starting...