OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 5:31 am

All times are UTC - 6 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: High Definition Graphics
PostPosted: Mon Jul 15, 2013 1:10 am 
Offline

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


Top
 Profile  
 
 Post subject: Re: High Definition Graphics
PostPosted: Mon Jul 15, 2013 2:13 am 
Offline
Member
Member
User avatar

Joined: Thu Jul 12, 2012 7:29 am
Posts: 723
Location: Tallinn, Estonia
The process is pretty much the same as entering any other graphics mode.

_________________
Learn to read.


Top
 Profile  
 
 Post subject: Re: High Definition Graphics
PostPosted: Mon Jul 15, 2013 2:37 am 
Offline

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


Top
 Profile  
 
 Post subject: Re: High Definition Graphics
PostPosted: Mon Jul 15, 2013 3:15 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2646
Location: Devon, UK
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


Top
 Profile  
 
 Post subject: Re: High Definition Graphics
PostPosted: Mon Jul 15, 2013 3:37 am 
Offline

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


Top
 Profile  
 
 Post subject: Re: High Definition Graphics
PostPosted: Mon Jul 15, 2013 4:31 am 
Offline
Member
Member
User avatar

Joined: Sat Feb 16, 2013 11:19 am
Posts: 39
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


Top
 Profile  
 
 Post subject: Re: High Definition Graphics
PostPosted: Mon Jul 15, 2013 4:49 am 
Offline

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 65 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group