From: Brendan Hansen Date: Sat, 20 Feb 2021 17:18:19 +0000 (-0600) Subject: fixing rendering bug X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=c34c13e1e0594e47178bffc356824667030d0b81;p=onyx-prez.git fixing rendering bug --- diff --git a/dist/prez.wasm b/dist/prez.wasm index d91e272..7978033 100644 Binary files a/dist/prez.wasm and b/dist/prez.wasm differ diff --git a/src/prez.onyx b/src/prez.onyx index feea310..18d755a 100644 --- a/src/prez.onyx +++ b/src/prez.onyx @@ -58,6 +58,9 @@ loop :: () -> void #export "loop" { slideshow_update_animation(^the_slideshow); if the_slideshow.current_animation != null { + identity := f32.[ 1, 0, 0, 1, 0, 0 ]; + Canvas.set_transform(canvas, identity); + Canvas.clear(canvas, 0, 0, 0, 1); the_slideshow.current_animation->render(^the_slideshow); }