From 5d78f15823725327ad669b4ce5d41bd7e0c316e9 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Sat, 17 Nov 2018 15:17:08 +0200 Subject: [PATCH] [VC, wip] depth woes --- src/platform/vc.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/platform/vc.rs b/src/platform/vc.rs index d78f493..4a3bf5f 100644 --- a/src/platform/vc.rs +++ b/src/platform/vc.rs @@ -52,6 +52,11 @@ impl VC { _ => return None, }; + let depth = mbox.buffer[5]; + if depth != fb_info.depth { + return None; // this doesn't happen, so depth is ok + } + /* Need to set up max_x/max_y before using Display::write */ let max_x = fb_info.vwidth / CHARSIZE_X; let max_y = fb_info.vheight / CHARSIZE_Y;