Set GOP Mode With "Scrolling" Menu | UEFI Dev (in C)
Вставка
- Опубліковано 4 лип 2024
- Making choosing a GOP mode a bit better with a "scrolling" menu, and setting the GOP mode.
Notes:
- This GOP menu is a bit jank on my laptop, as it only has 5 modes (not 30), and I did not
handle the case where the maximum GOP mode is less than the screen or menu length. That'll be fixed on the next video!
Links:
uefi.org/specifications (uefi & other specifications)
UEFI Programming playlist:
• UEFI Programming in C
Git Repo:
github.com/queso-fuego/uefi-dev
Repo state at the start of this video:
git clone --recurse-submodules github.com/queso-fuego/uefi-dev
cd uefi-dev
git checkout 1fb351194c9f28e93a5ebd072fe9a23c51833544
Repo state at the end of this video:
git checkout 7fa72572a9385ae4dc6d6fe17ec965dc72dfc000
Next video:
- Getting basic mouse support with the Simple Pointer Protocol, and maybe drawing a mouse cursor of sorts.
Join the Community Discord: / discord
Contact:
queso_fuego.srht.site/contact.html
- Let me know if there's anything specific you'd like to see!
Questions about setup/software/etc.?
Check the FAQ: queso_fuego.srht.site/about.html
Outline:
0:00:00 Intro / what's on the docket
0:03:24 Set up first menu page of gop choices
0:20:14 Get user input, scroll menu of choices
0:49:17 Set GOP mode
0:52:25 Clear screen with EfiBltVideoFill, and coming up/outro
Music credits:
Winter Night by Sakura Girl | / sakuragirl_official
Music promoted by www.chosic.com/free-music/all/
Creative Commons CC BY 3.0
creativecommons.org/licenses/...
#uefidev #cprogramming #gop - Наука та технологія
I believe a side affect of _not_ storing the GOP / text values is that the menu content should have changed dynamically if you change screens (ie boot with one then use another). Plus I think the _character size vs GOP size_ is hardware dependant, _but_ most will function like VESA-VBE (choosing an appropriate font size for that screen size). But as you mentioned, stuff like that requires real hardware verification. Also if you can still build QEMU with SDL, then you will get a "proper" _screen stretch_ for the font / text mode.
It's sort of hit or miss on hardware, but that's right, it should dynamically change the size.
The SDL and GTK display for qemu do seem to scale the font size when I fullscreen with ctrl-alt-f, though SDL I think looks a bit better, or handles it slightly better
Yay 🙌
as always 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥 want more
Appreciate it! Trying to make more time for these
what happened to osdev
Got basic position independent elf file loading and mkdir/chdir working, but it's a lot of footage to go through.
Working on it when I have time right now.
Your voice and appearance are very similar to Hamish Linklate. By the way, your vedios are so cool.
Thank you!