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

  1. Path: apoll.informatik.uni-bonn.de!zeus!malerz
  2. From: malerz@zeus.informatik.uni-bonn.de (Andreas Malerz)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Need help with strange screens
  5. Date: 25 Jan 1996 10:31:55 GMT
  6. Organization: Universit"at Bonn, Informatik Abt. II, R"omerstr. 164, 53117 Bonn
  7. Message-ID: <4e7m6r$o8s@apoll.informatik.uni-bonn.de>
  8. NNTP-Posting-Host: zeus.informatik.uni-bonn.de
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hello!
  12.  
  13. I tried to scroll a very big picture in an OS-conform way on a screen.
  14. That's why I opened a LORES-screen like this:
  15.  
  16. struct Rectangle blubb=
  17. {
  18.   0, 0, 320, 256
  19. };
  20.  
  21. ...
  22.  
  23. screen=OpenScreenTags( NULL, SA_Top, 0,
  24.                              SA_Left, 0,
  25.                   SA_Width, 640,
  26.                  SA_Height, 512,
  27.                   SA_Type, LORES_KEY,
  28.                              SA_DClip, &blubb,
  29.                              TAG_DONE);
  30.  
  31. The rectangle is declared, because I wanted only this range to be visible. But this
  32. simple doesn't work. The x-size is displayed correctly, but my screen is always 
  33. higher than 256 pixels.  The rectangle is (in y-direction) only useful to make the
  34. mouse not to go outside the boundaries.
  35.  
  36. But I would like to make the visible area only 320x256. What should I do? This must
  37. be possible, since the workbench works this way. (You can open a screen bigger than
  38. the visible area.)
  39.  
  40. Hopefully one of you cracks know a solution, since this problem seems very easy
  41. to me, but I could not find a solution.
  42.  
  43.     Greetings,
  44.            Andy.
  45.  
  46.