🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11351

how to display second bitmap?

#11351
From: Frank J. Edwards
Date: Mon, 06 Feb 1989 00:08
43 lines
1987 bytes
I'm stuck!  I've used OpenWindow() to create a new window, and I've
created a raster port with InitRastPort() including the bit planes
I'm going to be using (depth = 2).

Now how do I get the current window to switch from it's current
RasterPort to the one I've built?  I stored the address of my structure
into Window->RPort, but that didn't do it.  Is there something else I
need to do?  I saw in the ROM Kernel Ref: LIB & DEV that there is also
a RasInfo structure; do I need to do anything with that?

The whole reason I'm interested in all of this is because the default
window (the one I opened) has a title bar and I don't want one, but I
do want the WINDOWCLOSE and WINDOWDEPTH gadgets.  So I figured I'd
supply a new BitMap/RastPort with the image I wanted to display and
that'd be it.

Essentially, this is what I'm doing:

	Window = OpenWindow(&newwin);

	InitRastPort(&myrp);
	InitBitMap(&mybmap, DEPTH, WIDTH, HEIGHT);
	...  allocate bit planes  ...
	myrp.BitMap = &mybmap;

	SetAPen(&myrp, 0);
	SetBPen(&myrp, 1);
	...  do all of my drawing, etc  ...
	Window->RPort = &myrp;

... shouldn't my new bitmap be displayed now?

If you can help, thanks!!  Mail would be more reliable since my site
usually cleans the spool directories daily and I might miss the answer!

Frank "Crash" Edwards
...!uunet!pdn!boake2!jc3b21!crash

You gotta' know when to code'em, know when to modem.
Know when to load'em up, know when to run.
You never count you're money while you're sitting at the keyboard,
They'll be time enought for counting when the contract's done.
		-- Anonymous
Technical Details
Message-ID: <564@jc3b21.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!usfvax2!jc3b21!crash

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!usfvax2!jc3b21!crash
From: crash@jc3b21.UUCP (Frank J. Edwards)
Newsgroups: comp.sys.amiga.tech
Subject: how to display second bitmap?
Keywords: raster bitmap window
Message-ID: <564@jc3b21.UUCP>
Date: 6 Feb 89 00:08:45 GMT
Distribution: na
Organization: St. Petersburg Jr. College, FL
Lines: 43