summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2020-12-05 15:28:00 -0500
committerDavid Thompson <dthompson2@worcester.edu>2020-12-05 15:28:00 -0500
commit20936b200808e8c9b777497fd7f450c7ca899e1b (patch)
tree94e7eb7fd3038309920341a7c85f12e32bf3a76f
parentc9a2c09fa5297463743faa8ecac59d5f0ddc35a9 (diff)
render: Rename get-render-target to render-target.
-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 f1fa9cf..2e6cb9f 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -1200,7 +1200,7 @@ comming draw requests redirect to @var{texture}.
Pass @code{#f} to reset it to the default target.
@end deffn
-@deffn {Procedure} get-render-target renderer
+@deffn {Procedure} render-target renderer
Returns the current render target of @var{renderer} or @code{#f} if
it's a texture.
@end deffn
diff --git a/sdl2/render.scm b/sdl2/render.scm
index fbf2c77..f7665b6 100644
--- a/sdl2/render.scm
+++ b/sdl2/render.scm
@@ -400,7 +400,7 @@ Pass #f to reset it to the default target."
(unless (zero? result)
(sdl-error "set-render-target!" "failed to set render target"))))
-(define (get-render-target renderer)
+(define (render-target renderer)
"Returns the current render target of RENDERER. #f if it's a texture."
(let ((ptr (ffi:sdl-get-render-target (unwrap-renderer renderer))))
(if (null-pointer? ptr)