Page 1 of 1

High Definition Graphics

Posted: Mon Jul 15, 2013 1:10 am
by Someone256
Hi.
I was wondering if there was anyway of getting into a graphics mode which supports a 16:9 ratio at either 1366 x 768 pixels or 1920 x 1080 pixels. It would really help with my OS development. If it's not a bother, could you show some example code?

Thanks.

(This is for the x86 platform)

Re: High Definition Graphics

Posted: Mon Jul 15, 2013 2:13 am
by dozniak
The process is pretty much the same as entering any other graphics mode.

Re: High Definition Graphics

Posted: Mon Jul 15, 2013 2:37 am
by Someone256
Yes but I can't find a graphics mode for the ratio and resolution I want. Is their anything that does support it? Or do I have to work in a 4:3 ratio?

Re: High Definition Graphics

Posted: Mon Jul 15, 2013 3:15 am
by AJ
Hi,

How are you trying this at the moment? If you are just using VGA, then the answer is no. If you are using VBE and the mode is not listed, then your only remaining option is to write a native driver for your graphics chipset.

Cheers,
Adam

Re: High Definition Graphics

Posted: Mon Jul 15, 2013 3:37 am
by Someone256
My laptop has a VGA port for my extra display, but that runs on a VBE mode (1440 x 900 32 bit colour). I am afraid that I will have to write my own driver but how do I get the driver to set it to 16:9 ratio with HD graphics? I will run the OS in VBE mode 280 (0118h) for now.

Re: High Definition Graphics

Posted: Mon Jul 15, 2013 4:31 am
by Luis
Hi,

Like Adam said... you need to retrieve the mode list from VBE and check the resolutions from each mode. This includes all ratios (4:3, 16:9, 16:10, and others maybe). If none of them is what you need then you need to write specific drivers.


Cheers,

Luís

Re: High Definition Graphics

Posted: Mon Jul 15, 2013 4:49 am
by Someone256
Yes I'm running in a VBE mode for now until I write my own graphics driver. The VBE mode I'm using is: VBE mode 280 (0118h)