Code: Select all
//SDL_FillRect(box, NULL, 0xAAAAAA);
SDL_Rect area = {0, 0, 100, 100};
SDL_BlitSurface(box, &area, buffer, NULL);
SDL_Flip(buffer);
Moderator: Coders of Rage
Code: Select all
//SDL_FillRect(box, NULL, 0xAAAAAA);
SDL_Rect area = {0, 0, 100, 100};
SDL_BlitSurface(box, &area, buffer, NULL);
SDL_Flip(buffer);
Code: Select all
SDL_Rect area = {0, 0, 100, 100};
SDL_FillRect(buffer, area, 0xAAAAAA);