From a04b514985c8202e92f31f9cfbe6f0e23baec37f Mon Sep 17 00:00:00 2001 From: ooxi Date: Tue, 29 Dec 2015 11:58:00 +0100 Subject: [PATCH] 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` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 34d521b..83cb29a 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ try { sprite1.Update(Rect(0, 0, 16, 16), pixels, 16 * 4); // 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 renderer.Copy(sprite1, NullOpt, NullOpt);