vesa 2.0

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
User avatar
ezome
Posts: 20
Joined: Thu Aug 30, 2007 3:09 pm
Location: Germany

vesa 2.0

Post by ezome »

i've put my os into 0x115 vesa mode (800x600x24) using lfb
then i went to protected mode and filled the videobuffer

however in bochs it looks like simple BGR format and my
code produces a red area at the top of the screen

however when i run the same code in qemu the same
area on the screen just got red, green and blue stripes
from top to bottom so i guess it's simply not BGR

can someone give me a hint on how to determine the video format
i guess i have to use the vesa mode info structure but i don't understand
it so far
User avatar
ezome
Posts: 20
Joined: Thu Aug 30, 2007 3:09 pm
Location: Germany

Post by ezome »

i found the error
vesa on qemu tells me about a 24bit buffer but in reality it's a 32bit buffer
Post Reply