home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d6xx
/
d634
/
apig.lha
/
APIG
/
apig33.lzh
/
graphicsdb.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-02-20
|
3KB
|
101 lines
/* Reading graphics display database */
call addlib('apig.library',0,-30,0)
call set_apig_globals()
id = -1
handle = null()
buf = allocmem(200,MEMF_CLEAR)
say ""
/* I have no idea what this all means */
do i = 1 to 20
id = NEXTDISPLAYINFO(id)
if id = -1 then leave
if MODENOTAVAILABLE(id) > 0 then iterate
/* NameInfo */
b = GETDISPLAYINFODATA(handle,buf,56,DTAG_NAME,id)
nif_Name = offset(buf,16)
nifName = import(nif_Name)
if nifname = null() then iterate
if nifname = '' then iterate
say nifName " Dimension Info "
/* Dimension Info */
b = GETDISPLAYINFODATA(handle,buf,48,DTAG_DIMS,id)
dim_MaxDepth = getvalue(buf,16,2,'n')
dim_MinRasterWidth = getvalue(buf,18,2,'n')
dim_MinRasterHeight = getvalue(buf,20,2,'n')
dim_MaxRasterWidth = getvalue(buf,22,2,'n')
dim_MaxRasterHeight = getvalue(buf,24,2,'n')
dim_Nominal = offset(buf,26)
dim_MaxOScan = offset(buf,34)
dim_VideoOScan = offset(buf,42)
dim_TxtOScan = offset(buf,50)
dim_StdOScan = offset(buf,58)
say " dim_MaxDepth = " dim_MaxDepth
say " dim_MinRasterWidth = " dim_MinRasterWidth
say " dim_MinRasterHeight = " dim_MinRasterHeight
say " dim_MaxRasterWidth = " dim_MaxRasterWidth
say " dim_MaxRasterHeight = " dim_MaxRasterHeight
/* DisplayInfo */
b = GETDISPLAYINFODATA(handle,buf,size,DTAG_DISP,id)
dis_NotAvailable = getvalue(buf,16,2,'n')
dis_PropertyFlags = getvalue(buf,18,4,'n')
dis_Resolution = offset(buf,22)
dis_PixelSpeed = getvalue(buf,26,2,'n')
dis_NumStdSprites = getvalue(buf,28,2,'n')
dis_PaletteRange = getvalue(buf,30,2,'n')
dis_SpriteResolution = getvalue(buf,32,2,'n')
say " dis_NotAvailable = " dis_NotAvailable
say " dis_PropertyFlags = " dis_PropertyFlags
say " dis_PixelSpeed = " dis_PixelSpeed
say " dis_NumStdSprites = " dis_NumStdSprites
say " dis_PaletteRange = " dis_PaletteRange
say " dis_SpriteResolution = " dis_SpriteResolution
/* MonitorInfo */
b = GETDISPLAYINFODATA(handle,buf,size,DTAG_MNTR,id)
mtr_Mspc = getvalue(buf,16,4,'p')
mtr_ViewPosition = offset(buf,20)
mtr_ViewResolution = offset(buf,24)
mtr_ViewPositionRange = offset(buf,28)
mtr_TotalRows = getvalue(buf,36,2,'n')
mtr_TotalColorClocks = getvalue(buf,38,2,'n')
mtr_MinRow = getvalue(buf,40,2,'n')
mtr_Compatibility = getvalue(buf,42,2,'n')
say " mtr_TotalRows = " mtr_TotalRows
say " mtr_TotalColorClocks = " mtr_TotalColorClocks
say " mtr_MinRow = " mtr_MinRow
say " mtr_Compatibility = " mtr_Compatibility
say ""
end
call freemem(buf,200)
exit