From fcf692276a760da4737e663f3ea67c05c86d4dc7 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 11 Dec 2013 21:13:45 -0800 Subject: [PATCH] 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testdrawchessboard.c b/test/testdrawchessboard.c index f203f581e..bb30bd8d5 100644 --- a/test/testdrawchessboard.c +++ b/test/testdrawchessboard.c @@ -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; @@ -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);