Xref: utzoo comp.sys.amiga:19854 comp.sys.amiga.tech:928 Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!oliveb!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: Re: Image in a window Keywords: Simple, no-prob, ACK!, doesn't work Message-ID: <56216@sun.uucp> Date: 11 Jun 88 11:44:59 GMT References: <740@csm9a.UUCP> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 24 In article <740@csm9a.UUCP> ngorelic@csm9a.UUCP (Noel Gorelick) writes: >I'm trying to display an image in a window in a screen. Simple, No? Pretty basic stuff... >I have opened the screen with depth=5, and opened the window without any >problems. My image is a dpaint brush (the moon from DpaintI), and was >made with Brush2C, and is included as a .h file. > >So when I tell it to DisplayImage(r,&picture,0,0), how come all I get is >a blank window? Am I missing some fundamental thinggy, or what? I betcha you have fast ram and don't tell AmigaDOS to force the loading of the picture data into chip ram. Am I right? Two solutions, run FixHunk on your executable (it's on Fish Disk 6 or so) or check to see if your picture data is in chip ram if (TypeOfMem(picturedata) & MEMF_CHIP) /* I'm in chip */ and if it isn't AllocMem some chip ram, copy it in and then call DrawImage on the copy in CHIP ram. --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.