Original Post
I want to draw a transparent rectangle to the screen over what's already there. I set the alpha value of the color to 0xCC, but the rectangle still shows up solid. Does anyone know how I can draw a alpha'd rectangle to the screen so it doesn't cover everything underneath?
// Set the system color's RGBA value.
void sys_set_color(uint r, uint g, uint b, uint a) {
g = g << 8;
b = b << 16;
a = a << 24;
Working_color = (r | g | b | a);
}
// Draw a rectangle in the current system color.
void sys_draw_rect(uint x, uint y, uint w, uint h)
{
SDL_Rect rect;
rect.x = x;
rect.y = y;
rect.w = w;
rect.h = h;
SDL_FillRect(Main_screen, ▭, Working_color);
}