Grub multiboot framebuffer_bpp value

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
tommasop
Posts: 8
Joined: Fri Oct 13, 2017 10:03 am

Grub multiboot framebuffer_bpp value

Post by tommasop »

Hi, i don't really understand the value inside framebuffer_bpp in the multiboot info. For every video mode i set the bpp in this field are always different from the one i specified in the header. To make an example:
When i set video mode 1024*768 32bpp, in the multiboot i find 20bpp, at first i tought that maybe the problem was how i wrote pixels on screen, so i tried different colors but they all seems right so i suppose the bpp really are 32 and not 20. So why do grub tells me i have 20?
Thanks.
Octocontrabass
Member
Member
Posts: 5581
Joined: Mon Mar 25, 2013 7:01 pm

Re: Grub multiboot framebuffer_bpp value

Post by Octocontrabass »

Are you sure that's 20 and not 0x20? (0x20 is 32)

Other than that, maybe there's a problem with how you're reading the multiboot info.
tommasop
Posts: 8
Joined: Fri Oct 13, 2017 10:03 am

Re: Grub multiboot framebuffer_bpp value

Post by tommasop »

Octocontrabass wrote:Are you sure that's 20 and not 0x20? (0x20 is 32)

Other than that, maybe there's a problem with how you're reading the multiboot info.
Damn, you're right, thanks. I'm such an idiot...
Post Reply