Fixed bug 2294 - testdrawchessboard.c Sets the render color alpha to 0x0.
authorSam Lantinga <slouken@libsdl.org>
Wed, 11 Dec 2013 21:13:45 -0800
changeset 8058 8e4512b74223
parent 8057 801d84e26f91
child 8059 e70f5749f692
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.
test/testdrawchessboard.c
--- a/test/testdrawchessboard.c	Tue Dec 10 16:24:11 2013 -0300
+++ b/test/testdrawchessboard.c	Wed Dec 11 21:13:45 2013 -0800
@@ -34,7 +34,7 @@
 		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;
@@ -81,7 +81,7 @@
 	}
 
 	/* 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);