mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 19:05:59 -04:00
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:
parent
5eb5fb4fde
commit
a04b514985
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user