amiga.org
     
iconAll times are GMT -6. The time now is 11:50 PM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Operating System Specific Discussions » Amiga OS » Amiga OS -- Development » Display info

Amiga OS -- Development This particular forum deals with issues regarding development for all versions of AmigaOS.

Reply
 
Thread Tools Display Modes
Old 03-04-2003, 07:23 AM   #1
Karlos
Sockologist
Points: 48,752, Level: 100 Points: 48,752, Level: 100 Points: 48,752, Level: 100
Activity: 8% Activity: 8% Activity: 8%
 
Karlos's Avatar
 
Join Date: Nov 2002
Location: I solve practical problems...
Posts: 16,606
Blog Entries: 18
Default Display info

Hi all,

I got another RTFM question :-P

Does anybody know how to determine the horizontal / vertical refresh rates of a given display from C? I've been rumaging through the RKMS's, Includes & Autodocs and can't seem to find what I need.

I especially need the vertical refresh rate to determine the maximum safe locking time for direct video access / rendering under cybergraphx.

I know the info must be stored away in an intuition or graphics library structure somewhere. After all, you can see the refresh rates in the screenmode preferences window...

Thanks,

K
Karlos is offline   Reply With Quote
Old 03-05-2003, 03:20 AM   #2
Karlos
Sockologist
Points: 48,752, Level: 100 Points: 48,752, Level: 100 Points: 48,752, Level: 100
Activity: 8% Activity: 8% Activity: 8%
 
Karlos's Avatar
 
Join Date: Nov 2002
Location: I solve practical problems...
Posts: 16,606
Blog Entries: 18
Default Re: Display info

*bump*

:-)
Karlos is offline   Reply With Quote
Old 03-05-2003, 04:14 AM   #3
Piru
' union select name,pwd--
Points: 30,457, Level: 100 Points: 30,457, Level: 100 Points: 30,457, Level: 100
Activity: 69% Activity: 69% Activity: 69%
 
Piru's Avatar
 
Join Date: Aug 2002
Location: Helsinki, Finland
Posts: 6,946
Default Re: Display info

Quote:
Does anybody know how to determine the horizontal / vertical refresh rates of a given display from C?
See getmodeidrate.c.
Piru is offline   Reply With Quote
Old 03-05-2003, 04:48 AM   #4
Karlos
Sockologist
Points: 48,752, Level: 100 Points: 48,752, Level: 100 Points: 48,752, Level: 100
Activity: 8% Activity: 8% Activity: 8%
 
Karlos's Avatar
 
Join Date: Nov 2002
Location: I solve practical problems...
Posts: 16,606
Blog Entries: 18
Default Re: Display info

Thanks! :-)

-edit-

BTW, whats the significance of the constants 280 and 5 in the

moninfo.TotalColorClocks * 280 * moninfo.TotalRows / 1000) + 5;

expression? Is there any likelyhood that theyre hardware dependent? Sorry if that turns out to be a really stupid question, don't have RKM to hand at the mo :-)

Karlos is offline   Reply With Quote
Old 03-05-2003, 05:52 AM   #5
Piru
' union select name,pwd--
Points: 30,457, Level: 100 Points: 30,457, Level: 100 Points: 30,457, Level: 100
Activity: 69% Activity: 69% Activity: 69%
 
Piru's Avatar
 
Join Date: Aug 2002
Location: Helsinki, Finland
Posts: 6,946
Default Re: Display info

from graphics/displayinfo.h:

/* scanline width in 280 ns units */

That +5 is just for proper rounding.
These are not hw dependant constants.
Piru is offline   Reply With Quote
Old 03-05-2003, 06:25 AM   #6
Karlos
Sockologist
Points: 48,752, Level: 100 Points: 48,752, Level: 100 Points: 48,752, Level: 100
Activity: 8% Activity: 8% Activity: 8%
 
Karlos's Avatar
 
Join Date: Nov 2002
Location: I solve practical problems...
Posts: 16,606
Blog Entries: 18
Default Re: Display info

Thanks again ;-)#

-edit-

Worked a treat...
Karlos is offline   Reply With Quote
Reply

Bookmarks

Tags
display , info

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
no display on a4000 swoslover Amiga Hardware Issues and discussion 6 07-15-2008 03:45 PM
A4000 display Miloo Amiga Hardware Issues and discussion 1 01-11-2008 02:32 PM
Display problems . psyco Amiga Hardware Issues and discussion 12 05-14-2007 05:55 AM
Amiga to TFT Display Mohicanos Amiga Hardware Issues and discussion 9 03-22-2007 04:07 PM
Amiga 500 PAL display on LCD? bratek Amiga Hardware Issues and discussion 4 09-06-2006 02:05 PM