cosell@cosell.bbn.com (Bernie Cosell) (01/02/88)
I could use a smidgeon of help: I'm doing a Basic hack and one piece of it involves hacking with ColorMap's I have the GetRGB4() part working fine, but when I try SetRGB4CM() I get "illegal function call". What is Basic trying to tell me? The routine is defined in fd1.2/graphics_lib.fd, and I think that it is also in graphics.bmap (I re-convertFD'ed the .fd file (_known_ to have SetRGB4CM()) and got the same .bmap file). Anyone know what might be happening? Is Basic trying to tell me that my actual lib/graphics.lib doesn't have SetRGB4CM in it? I don't even really know how to get more information, since I have checked the args and they seem to be OK, and the only bit of info I get is an "Illegal function call" requestor, and that isn't quite enough for me to figure out what is really going on. Thanks __ / ) Bernie Cosell /--< _ __ __ o _ BBN Labs, Cambridge, MA 02238 /___/_(<_/ (_/) )_(_(<_ cosell@bbn.com
carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) (01/05/88)
In article <19578@bbn.COM> cosell@bbn.com.UUCP (Bernie Cosell) writes: > >I could use a smidgeon of help: I'm doing a Basic hack and one piece of >it involves hacking with ColorMap's I have the GetRGB4() part working >fine, but when I try SetRGB4CM() I get "illegal function call". What is >Basic trying to tell me? The routine is defined in fd1.2/graphics_lib.fd, >and I think that it is also in graphics.bmap (I re-convertFD'ed the .fd >file (_known_ to have SetRGB4CM()) and got the same .bmap file). Worked fine for me. SetRGB4CM returns no value so don't DECLARE FUNCTION it, and use CALL to invoke it. CALL SetRGB4CM&(sColorMap&,n,r,g,b) Warning though - this function probably will not do what you want. It sets an RGB value in the ColorMap, but does not cause the display to be remade so you won't see the color. What you want may be LoadRGB4(). See LoadACBM on the Extras disk for an example of LoadRGB4() in cycling colors. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CATS >>Commodore Amiga Technical Support<< UUCP ...{allegra,ihnp4,rutgers}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=