Fix wrong method name in example

The SDL2 method [SDL_SetRenderDrawColor](https://wiki.libsdl.org/SDL_SetRenderDrawColor) is exposed as [SetDrawColor](https://github.com/libSDL2pp/libSDL2pp/blob/master/SDL2pp/Renderer.hh#L316) not `SetRenderColor`
This commit is contained in:
ooxi 2015-12-29 11:58:00 +01:00
parent 5eb5fb4fde
commit a04b514985

View File

@ -46,7 +46,7 @@ try {
sprite1.Update(Rect(0, 0, 16, 16), pixels, 16 * 4); sprite1.Update(Rect(0, 0, 16, 16), pixels, 16 * 4);
// Most setter methods are chainable // Most setter methods are chainable
renderer.SetLogicalSize(640, 480).SetRenderColor(0, 16, 32).Clear(); renderer.SetLogicalSize(640, 480).SetDrawColor(0, 16, 32).Clear();
// Also note a safe way to specify null rects and points // Also note a safe way to specify null rects and points
renderer.Copy(sprite1, NullOpt, NullOpt); renderer.Copy(sprite1, NullOpt, NullOpt);