Amiga-C (106/157)

From:Sensei
Date:22 Sep 2001 at 21:09:14
Subject:[amiga-c] Re: Monitors

Czesc Twelvebullets!

Dnia 22-Sep-01, Twelvebullets napisał:

> Also, How do i generate a list of available screenmodes, like the
> ScreenMode program ??

ULONG modeid = INVALID_ID;
while( ( modeid = NextDisplayInfo( modeid ) ) != INVALID_ID )
{
GetDisplayInfoData() or something like that.
}

If you would like to have name of _any_ display info you have to generate some
because graphics.library IS NOT generating names for HAM, EHB, Double
PlayField and PlayField 2 Pri modes, unfortunately... To do this correctly I
would advise to make display mode, for such mode without the name, that has
no these special bits (you can use BestModeIDA(), or if you are lazy, and
bits in mode long word f.e. ( mode & MONITOR_ID_MASK ) ) then get name, find
colone and copy it to internal buffer (it's name of monitor) and join the
rest of display mode name (see what names ReqTools or asl.library uses)...
Make sure that you have the standard names!

Regards!



Can your ImageFX paint like bitmap painters?
Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com

Przemyslaw 'SENSEI' Gruchala

code/gfx2d/gfx3d/webmaster

Amiga 1200
Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
HDD 3.2 GB, HDD 520 MB, CD x12



Uwaga: Oferta dla firm!
Biznesowe konto pocztowe bez doklejek i przesylek reklamowych
Rejestracja wlasnego adresu internetowego (domeny) i 100 MB pojemnosci
Koszt uslugi to tylko 100 PLN/rok Szczegoly http://www.konto.getin.pl

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get your FREE VeriSign guide to security solutions for your web site: encrypting transactions, securing intranets, and more!
http://us.click.yahoo.com/XrFcOC/m5_CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/