0

With the SDL library, I'm creating an SDL_Surface* at w and h dimensions.
SDL_Color is a struct with 4 unsigned char fields: a, r, g and b for alpha, red, green and blue. c1 is the origin color, c2 the destination color, and c the color of the pixel at position (i,j).
That gradient works fine, ...