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