Higher VGA resolutions

Topics: Off Topic, Other, Using Cosmos (Developing your own OS, projects, etc)
Oct 29, 2013 at 1:46 PM
So, i have this code:
        screen = new VGAScreen();
        screen.SetGraphicsMode(VGAScreen.ScreenSize.Size720x480, VGAScreen.ColorDepth.BitDepth16);
        screen.SetPaletteEntry(0, 0, 0, 0); // Black
It doesen't give any errors, but it does not work right... It does not clean the screen but instead draws some random colors... Everything works fine for 320x200 and BitDepth8, but not 720x480x16... Any suggestions?
Dec 30, 2013 at 4:14 PM
If you are using C#, correct is:
var VGA = new VGAScreen();
VGA.SetGraphicsMode(VGAScreen.ScreenSize.Size720x480, VGAScreen.ColorDepth.BitDepth16);
VGA.SetPaletteEntry(0, 0, 0, 0);
Dec 30, 2013 at 4:18 PM
That's what they did...

The issue here is that whoever wrote the VGA driver didn't implement support for anything other than 8 bit 320x200.

If you want higher you can use the VMWare VGA driver (note: only works in VMWare). See Cosmos docs - there is a link to my project where I demoed this on YouTube (YouTube vid has a link to source). Or check our FB page for the same link if you can't find it in docs.