summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2020-12-05 15:10:25 -0500
committerDavid Thompson <dthompson2@worcester.edu>2020-12-05 15:10:25 -0500
commita49a27bedec4cdfc4bf52262006702171469a25c (patch)
tree8d553f211b4b4defc8b2b2bc9dda473b078631bc
parent4360d8dbae686edb7c8cd30207d08099028a2bcd (diff)
render: Rename set-render-draw-color to set-renderer-draw-color!
-rw-r--r--doc/api.texi2
-rw-r--r--sdl2/render.scm2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/api.texi b/doc/api.texi
index d7e6b5d..488d8f3 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -1137,7 +1137,7 @@ Set the drawing area for @var{renderer} to @var{rect}.
Copy @var{texture} to the rendering target of @var{renderer}.
@end deffn
-@deffn {Procedure} set-render-draw-color renderer r g b a
+@deffn {Procedure} set-renderer-draw-color! renderer r g b a
Set color of @var{renderer} to the 32-bit color defined by the 8-bit
color channels @var{r}, @var{g}, @var{b}, @var{a}. Each color channel
value is in the range [0, 255].
diff --git a/sdl2/render.scm b/sdl2/render.scm
index 575c9ae..4d83d0c 100644
--- a/sdl2/render.scm
+++ b/sdl2/render.scm
@@ -190,7 +190,7 @@ disable it."
(unwrap-renderer renderer)
((@@ (sdl2 blend-mode) blend-mode-bitmask) blend-mode)))
-(define (set-render-draw-color renderer r g b a)
+(define (set-renderer-draw-color! renderer r g b a)
"Set draw color of RENDERER."
(ffi:sdl-set-render-draw-color (unwrap-renderer renderer) r g b a))