From 153094d81d444376b112224409544375588c4f97 Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 14 Oct 2024 08:49:23 -0700 Subject: [PATCH] fix: fixed video frame size --- tetanes-core/src/video.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tetanes-core/src/video.rs b/tetanes-core/src/video.rs index c3890f2b..1b55c3a0 100644 --- a/tetanes-core/src/video.rs +++ b/tetanes-core/src/video.rs @@ -59,8 +59,8 @@ impl Frame { /// Allocate a new frame for video output. pub fn new() -> Self { Self( - [(); Self::SIZE] - .iter() + [(); Self::SIZE / 4] + .into_iter() .flat_map(|_| [0, 0, 0, 255]) .collect(), )