Page 1 of 1

vesa 2.0

Posted: Sat Sep 01, 2007 7:37 am
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

Posted: Sat Sep 01, 2007 10:31 am
by ezome
i found the error
vesa on qemu tells me about a 24bit buffer but in reality it's a 32bit buffer