I am currently doing some graphics support stuff in my OS. I have a vbe driver which registers and allows me to use both bank switched and linear frame buffer modes.
In order to find whether a mode supports lfb i check its mode attributes. If it does I check if the lfb mode is supported by passing the mode number ORred with 0x4000 to the get mode info function.
My first question is, is this right (passing the 0x4000 ORred mode to check for lfb) ?
This call though, is successful and I set the mode. This works both in Bochs (which supports LFB) and MS virtual pc 2007 (which does not, and hence my driver is able to detect it, and automatically use bank switched mode).
But in QEMU (VBE v2.0) , i find that it does support LFB but when I set the mode, I cannot draw to the mode, even if it is direct color and 24 bpp which is native to my os.
Is this a bug?
QEMU VBE linear frame buffer(solved)
- salil_bhagurkar
- Member
- Posts: 261
- Joined: Mon Feb 19, 2007 10:40 am
- Location: India
QEMU VBE linear frame buffer(solved)
Last edited by salil_bhagurkar on Sun Oct 26, 2008 12:26 pm, edited 1 time in total.
Re: QEMU VBE linear frame buffer
Do you pass the -std-vga command line argument to QEMU?
- salil_bhagurkar
- Member
- Posts: 261
- Joined: Mon Feb 19, 2007 10:40 am
- Location: India
Re: QEMU VBE linear frame buffer
Aw!!
Sorry.. I didn't know that.. Thank you very much @Walling. It worked fine. This post is a waste...
Sorry.. I didn't know that.. Thank you very much @Walling. It worked fine. This post is a waste...