Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug 2294 - testdrawchessboard.c Sets the render color alpha to …
…0x0.

Brandon Schaefer

This means everything will render black if the software rendering backend selects a pixel format that supports alpha. So it seems best to at lease assume alpha is supported.
  • Loading branch information
slouken committed Dec 12, 2013
1 parent bfcd28c commit fcf6922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testdrawchessboard.c
Expand Up @@ -34,7 +34,7 @@ DrawChessBoard(SDL_Renderer * renderer)
x = x + coloum;
for(coloum; coloum < 4+(row%2); coloum++)
{
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0);
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0xFF);

rect.w = darea.w/8;
rect.h = darea.h/8;
Expand Down Expand Up @@ -81,7 +81,7 @@ main(int argc, char *argv[])
}

/* Clear the rendering surface with the specified color */
SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0);
SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF);
SDL_RenderClear(renderer);


Expand Down

0 comments on commit fcf6922

Please sign in to comment.