aboutsummaryrefslogtreecommitdiff
path: root/src/desktop/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/window.rs')
-rw-r--r--src/desktop/window.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/desktop/window.rs b/src/desktop/window.rs
index 0d5bd8c..5265fd2 100644
--- a/src/desktop/window.rs
+++ b/src/desktop/window.rs
@@ -20,6 +20,14 @@ const HEIGHT: u32 = 144;
pub type Keys = Arc<Mutex<HashSet<KeyCode>>>;
+pub struct Headless;
+
+impl Window for Headless {
+ fn update(&mut self, _fb: Box<[u32; 160 * 144]>) -> Option<WindowSignal> {
+ None
+ }
+}
+
pub struct DesktopWindow {
fb_send: Sender<Box<[u32; 160 * 144]>>,
signal_recv: Receiver<WindowSignal>,