High Definition Graphics

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.
Locked
Someone256
Posts: 7
Joined: Sun Jul 14, 2013 8:58 pm

High Definition Graphics

Post 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)
User avatar
dozniak
Member
Member
Posts: 723
Joined: Thu Jul 12, 2012 7:29 am
Location: Tallinn, Estonia

Re: High Definition Graphics

Post by dozniak »

The process is pretty much the same as entering any other graphics mode.
Learn to read.
Someone256
Posts: 7
Joined: Sun Jul 14, 2013 8:58 pm

Re: High Definition Graphics

Post 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?
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: High Definition Graphics

Post 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
Someone256
Posts: 7
Joined: Sun Jul 14, 2013 8:58 pm

Re: High Definition Graphics

Post 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.
User avatar
Luis
Member
Member
Posts: 39
Joined: Sat Feb 16, 2013 11:19 am

Re: High Definition Graphics

Post 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
Someone256
Posts: 7
Joined: Sun Jul 14, 2013 8:58 pm

Re: High Definition Graphics

Post 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)
Locked