The draw color affects RenderClear() as well. (thanks to the feedback form to whoever pointed this out)
authorSam Lantinga
Sun, 30 Oct 2011 17:53:54 -0400
changeset 603985afb0c1dd04
parent 6038 3e0f5912363d
child 6040 08aa9c1dfed6
The draw color affects RenderClear() as well. (thanks to the feedback form to whoever pointed this out)
include/SDL_render.h
     1.1 --- a/include/SDL_render.h	Sun Oct 30 17:31:59 2011 -0400
     1.2 +++ b/include/SDL_render.h	Sun Oct 30 17:53:54 2011 -0400
     1.3 @@ -389,7 +389,7 @@
     1.4                                                     SDL_Rect * rect);
     1.5  
     1.6  /**
     1.7 - *  \brief Set the color used for drawing operations (Fill and Line).
     1.8 + *  \brief Set the color used for drawing operations (Rect, Line and Clear).
     1.9   *  
    1.10   *  \param r The red value used to draw on the rendering target.
    1.11   *  \param g The green value used to draw on the rendering target.
    1.12 @@ -404,7 +404,7 @@
    1.13                                             Uint8 a);
    1.14  
    1.15  /**
    1.16 - *  \brief Get the color used for drawing operations (Fill and Line).
    1.17 + *  \brief Get the color used for drawing operations (Rect, Line and Clear).
    1.18   *  
    1.19   *  \param r A pointer to the red value used to draw on the rendering target.
    1.20   *  \param g A pointer to the green value used to draw on the rendering target.