home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: cs.vu.nl!irmen
- From: irmen@cs.vu.nl (Irmen de Jong)
- Subject: Re: Need help with strange screens
- Nntp-Posting-Host: sloep60.cs.vu.nl
- References: <4e7m6r$o8s@apoll.informatik.uni-bonn.de>
- Sender: news@cs.vu.nl
- Organization: Dept. of Computer Science, Vrije Universiteit Amsterdam
- Date: Thu, 25 Jan 1996 12:30:45 GMT
- X-Newsreader: TIN [version 1.2 PL2]
- Message-ID: <DLqLF9.CDH.0.-s@cs.vu.nl>
-
- On 25 Jan 1996 10:31:55 GMT Andreas Malerz (malerz@zeus.informatik.uni-bonn.de) (Andreas Malerz) wrote:
- : Hello!
-
- : I tried to scroll a very big picture in an OS-conform way on a screen.
- : That's why I opened a LORES-screen like this:
-
- : struct Rectangle blubb=
- : {
- : 0, 0, 320, 256
- : };
-
- : ...
-
- : screen=OpenScreenTags( NULL, SA_Top, 0,
- : SA_Left, 0,
- : SA_Width, 640,
- : SA_Height, 512,
- : SA_Type, LORES_KEY,
- : SA_DClip, &blubb,
- : TAG_DONE);
-
- : The rectangle is declared, because I wanted only this range to be visible. But this
- : simple doesn't work. The x-size is displayed correctly, but my screen is always
- : higher than 256 pixels. The rectangle is (in y-direction) only useful to make the
- : mouse not to go outside the boundaries.
-
- : But I would like to make the visible area only 320x256. What should I do? This must
- : be possible, since the workbench works this way. (You can open a screen bigger than
- : the visible area.)
-
- : Hopefully one of you cracks know a solution, since this problem seems very easy
- : to me, but I could not find a solution.
-
- : Greetings,
- : Andy.
-
- Try adding SA_Overscan, OSCAN_NONE (errr... if I'm correct)
- Furthermore, to scroll the screen correctly, add SA_AutoScroll, TRUE
- You might want to remove the SA_DClip tag. AFAIK it is not needed when you specify
- the SA_Overscan tag.
-
- Check out QueryOverscan() and the docs on OpenScreenTags().
-
- --
- / Irmen de Jong (email: irmen@cs.vu.nl WWW: http://www.cs.vu.nl/~irmen/) \
- \ ``Nothing lasts forever'' -- Species /
-