Welcome, Guest. Please login or register.

Author Topic: Display info  (Read 2408 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Display info
« on: March 05, 2003, 11:14:06 AM »
Quote
Does anybody know how to determine the horizontal / vertical refresh rates of a given display from C?

See getmodeidrate.c.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Display info
« Reply #1 on: March 05, 2003, 12:52:11 PM »
from graphics/displayinfo.h:

/* scanline width in 280 ns units    */

That +5 is just for proper rounding.
These are not hw dependant constants.