summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/hello.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/hello.scm b/examples/hello.scm
index 3075102..1f98669 100644
--- a/examples/hello.scm
+++ b/examples/hello.scm
@@ -24,7 +24,7 @@
(sdl-init)
-(define window (make-sdl-window))
+(define window (make-window))
(define ren (make-renderer window))
(define surface (load-bmp "hello.bmp"))
(define texture (surface->texture ren surface))
@@ -33,5 +33,6 @@
(render-copy ren texture)
(present-renderer ren)
(sleep 2)
-(close-sdl-window! window)
+(close-window! window)
+(delete-renderer! ren)
(sdl-quit)