Path: utzoo!attcan!uunet!bu.edu!rpi!crdgw1!millerjv From: millerjv@rigel.crd.ge.com (Jim V Miller) Newsgroups: comp.sys.amiga Subject: Re: QBSBlit() problems - for Dave Haynie ? Message-ID: Date: 20 Jul 90 13:02:54 GMT References: <1990Jul19.213606.23011@uokmax.uucp> Sender: news@crdgw1.crd.ge.com Reply-To: (Jimmy Miller) Organization: GE Corporate Research & Development Lines: 45 In-reply-to: drtiller@uokmax.uucp's message of 19 Jul 90 21:36:06 GMT In article <1990Jul19.213606.23011@uokmax.uucp> drtiller@uokmax.uucp (Donald Richard Tillery Jr) writes: From: drtiller@uokmax.uucp (Donald Richard Tillery Jr) I have a problem with QBSBlit(). The problem is it doesn't work! I'm not sure about the bltnode structure or my C function it calls. In the RKMs it has bltnode defined as... struct bltnode { struct bltnode *Next, int (*function)(), char stat, char beamsync, short blitsize, int (*(cleanup)() }; I have it set up in my program as... struct bltnode *MyBlitNode = { NULL, /* no other links */ &BlitScroll, /* my function */ 0, /* no cleanup */ 189, /* the scan line to cause the interrupt */ 0, /* DAVE, DOES BLITSIZE NEED TO BE SPECIFIED, AND IF SO HOW DO I FIND IT? */ NULL }; /* no cleanup function to call. DAVE, DO YOU NEED TO SPECIFY A CLEANUP FUNCTION EVEN IF YOU DONT NEED ONE */ Rick Tillery I don't know anything about programming the blitter, but whenever I use a pointer to a function I merely specify the function name - no trailing (), no leading apersand. I just checked my syntax on some code I just wrote (on a workstation, not on an Amiga so the this may be how your C compiler does it). Anyway I would try replacing the "&BlitScroll" with just a "BlitScroll" in the function field of the bltnode. -- Jimmy Miller General Electric Corporate Research and Developement: millerjv@crd.ge.com Rensselaer Design Research Center (RPI): jvmiller@rdrc.rpi.edu "All I need is room to play."