home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18815 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.5 KB  |  36 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!rulway.LeidenUniv.nl!ruls41.LeidenUniv.nl!vosse
  3. From: vosse@ruls41.LeidenUniv.nl (Theo Vosse)
  4. Subject: CopyBits() difference on different machines?
  5. Message-ID: <1992Nov23.153538.27925@rulway.LeidenUniv.nl>
  6. Sender: root@rulway.LeidenUniv.nl (System PRIVILEGED Account)
  7. Nntp-Posting-Host: ruls41.leidenuniv.nl
  8. Reply-To: vosse@ruls41.LeidenUniv.nl (Theo Vosse)
  9. Organization: Rijksuniversiteit Leiden
  10. Date: Mon, 23 Nov 92 15:35:38 GMT
  11. Lines: 23
  12.  
  13. Hi,
  14.  
  15. I have got the vague idea, that this is a FAQ, but I can't find
  16. any hint, so here it comes:
  17.  
  18. I am writing a very simple music notation program, that uses off
  19. screen drawing. It works fine on my LCII at home and on my (old
  20. but trustworthy) Mac II at the office, but it won't run on a
  21. PowerBook nor on a Classic. After some debugging I found that there
  22. must be an even number of "rowBytes" in a BitMap when using any operation
  23. on the PowerBook or the Classic.
  24. Now the program runs, i.e. doesn't crash, on all machines, but on the
  25. PowerBook and the Classic the window is filled with garbage, consisting
  26. of repeated cells of about 8x8 pixels (as far as I can count), that change
  27. at every CopyBits(). So, there must be something wrong with random pointers,
  28. but the odd thing is, it looks perfectly normal on the Mac II!
  29. Can anyone explain this, and tell me what I'm doing wrong?
  30.  
  31.     Theo Vosse
  32.     ----------
  33.     Unit for Experimental Psychology
  34.     University of Leiden
  35.     The Netherlands
  36.