Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!rutgers!cbmvax!cbmehq!cbmger!kbsaar!fjrei From: fjrei@kbsaar.UUCP (Franz-Josef Reichert) Newsgroups: comp.sys.amiga.hardware Subject: Re: HELP! (please!) on OS... Message-ID: Date: 27 May 91 12:52:57 GMT References: <1991May24.212123.11386@lynx.CS.ORST.EDU> Organization: Private Amiga Site Lines: 28 In article <1991May24.212123.11386@lynx.CS.ORST.EDU> rudolpe@urubu.CS.ORST.EDU (RUDOLPh ERIC) writes: >HELP! I'm trying to do a little program in assembly that sets up a viewport and >displays it. However, I can't seem to restore the original Workbench display. >I know this: >I must call LoadView() while passing a pointer to the View Structure in a1. Correct. >However, I can't seem to find the original View Structure. My manual says to >find it in the offset ActiView in the GfxBase structure. My book says the >offset is 2. I don't believe it. It's wrong. The offset is 34 ($22). ActiView is the second structure member in GfxBase, though. >It looks wrong, the the program immediately >Gurus, with no Guru number, because the display is frozen. Using an offset of 2, you are trying to LoadView() some data from the graphic's library node. This must fail. :-) >rudolpe@jacobs.cs.orst.edu -- Best regards, Franz-Josef Reichert VOICE: +49 6805 7417 Kuchlingerstrasse 13 UUCP: ...uunet!cbmvax!cbmehq!cbmger!kbsaar!fjrei D-6601 Kleinblittersdorf GERMANY