How to get display's resolution?

OS Design, Theory, and Programming

Moderator:Moderators

Post Reply
Matrix7
Posts:8
Joined:Sat Apr 25, 2009 6:11 pm
How to get display's resolution?

Post by Matrix7 » Mon Mar 15, 2010 7:49 am

I want to know how to get display's resolution by call bios interrupt

User avatar
Mike
Site Admin
Posts:465
Joined:Sat Oct 20, 2007 7:58 pm
Contact:

Re: How to get display's resolution?

Post by Mike » Tue Mar 16, 2010 10:18 pm

Hello,

There is no standard VGA BIOS interrupt for obtaining the current video modes' resolution. However, you can get the current video mode and obtain its resolution based on the video mode number, or read the information directly via VGA registers.
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com

Post Reply