home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1947 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  59 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: cs.vu.nl!irmen
  3. From: irmen@cs.vu.nl (Irmen de Jong)
  4. Subject: Re: Need help with strange screens
  5. Nntp-Posting-Host: sloep60.cs.vu.nl
  6. References: <4e7m6r$o8s@apoll.informatik.uni-bonn.de>
  7. Sender: news@cs.vu.nl
  8. Organization: Dept. of Computer Science, Vrije Universiteit Amsterdam
  9. Date: Thu, 25 Jan 1996 12:30:45 GMT
  10. X-Newsreader: TIN [version 1.2 PL2]
  11. Message-ID: <DLqLF9.CDH.0.-s@cs.vu.nl>
  12.  
  13. On 25 Jan 1996 10:31:55 GMT Andreas Malerz (malerz@zeus.informatik.uni-bonn.de) (Andreas Malerz) wrote:
  14. : Hello!
  15.  
  16. : I tried to scroll a very big picture in an OS-conform way on a screen.
  17. : That's why I opened a LORES-screen like this:
  18.  
  19. : struct Rectangle blubb=
  20. : {
  21. :   0, 0, 320, 256
  22. : };
  23.  
  24. : ...
  25.  
  26. : screen=OpenScreenTags( NULL, SA_Top, 0,
  27. :                              SA_Left, 0,
  28. :                   SA_Width, 640,
  29. :                  SA_Height, 512,
  30. :                   SA_Type, LORES_KEY,
  31. :                              SA_DClip, &blubb,
  32. :                              TAG_DONE);
  33.  
  34. : The rectangle is declared, because I wanted only this range to be visible. But this
  35. : simple doesn't work. The x-size is displayed correctly, but my screen is always 
  36. : higher than 256 pixels.  The rectangle is (in y-direction) only useful to make the
  37. : mouse not to go outside the boundaries.
  38.  
  39. : But I would like to make the visible area only 320x256. What should I do? This must
  40. : be possible, since the workbench works this way. (You can open a screen bigger than
  41. : the visible area.)
  42.  
  43. : Hopefully one of you cracks know a solution, since this problem seems very easy
  44. : to me, but I could not find a solution.
  45.  
  46. :     Greetings,
  47. :            Andy.
  48.  
  49. Try adding SA_Overscan, OSCAN_NONE    (errr... if I'm correct)
  50. Furthermore, to scroll the screen correctly, add SA_AutoScroll, TRUE
  51. You might want to remove the SA_DClip tag. AFAIK it is not needed when you specify
  52. the SA_Overscan tag.
  53.  
  54. Check out QueryOverscan() and the docs on OpenScreenTags().
  55.  
  56. --
  57. / Irmen de Jong (email: irmen@cs.vu.nl WWW: http://www.cs.vu.nl/~irmen/)  \
  58. \                 ``Nothing lasts forever'' -- Species                    /
  59.