[comp.sys.amiga.tech] ScrollRaster + SIMPLEREFRESH windows

usenet@cps3xx.UUCP (Usenet file owner) (06/22/89)

I am writing a program that needs to manage several windows with
text that can scroll up and down in them. I am using SIMPLEREFRESH
windows to save memory, and because it is easy for the program
to refresh things anyway.
The function ScrollRaster says it does not update damage regions
properly. So, how do I get that info so that I can refresh properly?
It is a problem with there is another window partly overlapping
my window when the contents get scrolled.
My main loop looks like this:
	moved=0;
	do {
		/* NOTE: the below line is more complicated than that.
		         It figures out which windows have scrolled */
		if(moved) {refresh(window); moved=0;}
		Wait(sigs);
		While(GetMsg(port)!=0) {
		    do stuff;
		    /* set the moved flag if we scroll a window */
		}
	}


Is there a better way to do this?
Will ScrollRaster be fixed in future releases? Or will there be a
ScollRegion call? Or, do I need to write a ScrollRegion type call?

REAL NAME: Joe Porkka   jap@frith.cl.msu.edu