🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Anthony D. CXO1-2/N23 522-2072 Thu, 30 Oct 1986 21:38
Changing a grafPort's portBits?
#7813
Author: Anthony D. CXO1-2/N23 522-2072
Date: Thu, 30 Oct 1986 21:38
36 lines
1789 bytes
Does anyone know how to change the size of a grafPort's portBits
bitmap?  I am manipulating a 512x512 pixel image and need to increase
the size of portBits^.baseAddr from 314(?)x512 to 512x512 (also
changing portBits^.bounds to (0, 0, 512, 512), but that should be
easy: use SetRect).

There are a few of problems I'm having:

	(1) Whenever I use portBits^.baseAddr, I get an odd address
	    exception.  I'm using Lightspeed Pascal.

	(2) I don't know whether portBits^.baseAddr points to a
	    relocatable or non-relocatable block.  Do I use
	    RestoreHandle to get a handle from it, and then use
	    SetHandleSize, or do I use SetPtrSize?

	(3) When I create a brand new bitmap and assign it to portBits,
	    the  window toolbox routines get very confused
	    (i.e. the window changes to a different size,
	    no mouse-down events in the window work, etc.)
	   
Any help would be greatly appreciated.

Anthony

-----
Anthony Discolo
+---+---+---+---+---+---+---+
| d | i | g | i | t | a | l |
+---+---+---+---+---+---+---+
Database Systems Group
301 Rockrimmon Blvd. South
Mailstop CX01-2/N23
Colorado Springs, CO  80919
UUCP: ucbvax!decwrl!cookie.DEC!discolo
ARPA: cookie.DEC!discolo@decwrl.DEC.COM
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads