Skip to content

Instantly share code, notes, and snippets.

@psanford
Created November 26, 2022 01:44
Show Gist options
  • Save psanford/897c6568ef82143c2768be0742e746d5 to your computer and use it in GitHub Desktop.
Save psanford/897c6568ef82143c2768be0742e746d5 to your computer and use it in GitHub Desktop.
use full screen for m2 air framebuffer
diff --git a/src/kboot.c b/src/kboot.c
index 67c5eff..e48343f 100644
--- a/src/kboot.c
+++ b/src/kboot.c
@@ -80,6 +80,7 @@ void get_notchless_fb(u64 *fb_base, u64 *fb_height)
printf("display: Hiding notch, %lux%lu -> %lux%lu (+%lu, 16:%lu)\n", cur_boot_args.video.width,
cur_boot_args.video.height, cur_boot_args.video.width, new_height, offset, hfrac);
+ return;
*fb_base += cur_boot_args.video.stride * offset;
*fb_height = new_height;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment