home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!cbmehq!cbmswi!augs1!Milan_Sismanovic
- From: Milan_Sismanovic@augs1.ch.so.commodore.com (Milan Sismanovic)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Scrolling trouble
- Message-ID: <Milan_Sismanovic.09ce@augs1.ch.so.commodore.com>
- Date: 5 Sep 92 14:42:09 GMT
- Organization: Amiga Usergroup Switzerland
- Lines: 48
-
- I wrote a program, which is
- scrolling a double buffered screen in
- lowres mode.
- This is the way I do it:
-
- - init three bitmaps and a copperlist
- - make an array of the 3 bitmaps
- pointers
- - activate the 1st bitmap
-
- loop
- - wait for the copperinterrupt
- - change bitplanepointers of the
- 3rd bitmap so that it shows
- a different part of this bitmap
- - copy this part to the 2nd bitmap
- - do other gfx-stuff to 2nd bitmap
- - bra loop
-
- In the copperinterrupt I swap the
- 1st and the 2nd bitmaps, so that the
- new arranged bitmap becomes active.
-
- Now the Problem:
- When I'm scrolling the screen more than
- 2 lines/interrupt the screen is
- flickering. That means, that it is
- showing the last state before the last
- interrupt and the actual screen.
-
- I think that this is because the
- copperinterrupt makes up the even lines
- and then the odd lines again and again.
- So that when I'm scrolling more than 2
- lines per interrupt one can still see the
- old part of the bitmap which isn't as
- bright as the new bitmap, but it makes
- the ugly flickering which I wan't to get
- rid of.
-
- Unpatiently waiting for suggestions,
- problem solvers and the like
-
- And big thanks in advance for trying.
-
-
-
- -- DLG Pro v0.992
-