summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-05-27 17:14:30 -0400
committerDavid Thompson <dthompson2@worcester.edu>2023-05-27 17:14:30 -0400
commit1b8097ccb89ca043282f79fb5a0aeaf71737b602 (patch)
tree755f31f28538781e052803934e0751a94faa7a38
parent1f1a05afca95ecd7b021a41feabecf4c525fa9ac (diff)
Preserve user clear color on window resize.
-rw-r--r--chickadee.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/chickadee.scm b/chickadee.scm
index a3434b8..05f3d65 100644
--- a/chickadee.scm
+++ b/chickadee.scm
@@ -399,7 +399,9 @@ border is disabled, otherwise it is enabled.")
((width height)
(set! window-width width)
(set! window-height height)
- (atomic-box-set! default-viewport (make-viewport 0 0 width height))
+ (atomic-box-set! default-viewport
+ (make-viewport 0 0 width height
+ #:clear-color clear-color))
(atomic-box-set! default-projection
(orthographic-projection 0 width height 0 0 1))
(window-resize width height))))))