OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Nov 21, 2019 5:36 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Grub multiboot framebuffer_bpp value
PostPosted: Fri Aug 16, 2019 6:14 am 
Offline

Joined: Fri Oct 13, 2017 10:03 am
Posts: 8
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.


Top
 Profile  
 
 Post subject: Re: Grub multiboot framebuffer_bpp value
PostPosted: Fri Aug 16, 2019 6:17 am 
Online
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 1681
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.


Top
 Profile  
 
 Post subject: Re: Grub multiboot framebuffer_bpp value
PostPosted: Fri Aug 16, 2019 6:21 am 
Offline

Joined: Fri Oct 13, 2017 10:03 am
Posts: 8
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...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group