🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #3512

Scrolling a SuperBitMap

#3512
From: Manfred Hell
Date: Sun, 06 May 1990 20:53
40 lines
1870 bytes
One of my application programs uses a SuperBitMap (1024 pixels hor.)
and an associated Screen with 640 pixels wide. This done as described
in the common manuals with InitBitMap and AllocRaster. While running 
the program users can scroll over the total area which is done by the
sequence of following functions:
Preparation:
InitBitMap() using 4 Planes
AllocRaster()
OpenScreen() using CUSTOMSCREEN, CUSTOMBITMAP amd HIRES
OpenWindow() using SUPERBITMAP
view=ViewAdress();
rxoffset=&(viewport->RasInfo->RxOffset); the pointer-variable that
                                   holds the xoffset for scrolling
To scroll i do for instance
*rxoffset+=4;
MakeScreen(screen);
MrgCop(view);
LoadView(view);

These three functions could be sustituited by ScrollVPort(), but 
this causes Interrupts to be disabled and I need interrupts running
undisturbed.
Here's the problem:
Doing this sequence repeatedly (for scrolling) display switches from
PAL to NTSC and back, that is on screenbottom a black area is blinking
hiding parts of the screen. The effect does NOT come up when using
Workbench 1.2 or using a display with only 2 Planes! It was verified
on different machines with different system-configurations ( with and
without PC-Board, Harddisks ). Further i notized, that when screen is
in the 'NTSC'-state obviously processor is blocked out from memory-
access, because program runs slower.
What happens? Where's the mistake? In my programm or in WB1.3 ?

Thanks for any hint!



--
Manfred Hell
....!cbmehq!cbmger!mhell!mhell
Technical Details
Message-ID: <00009.AA00009@mhell>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cbmvax!cbmehq!cbmger!mhell!mhell

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cbmvax!cbmehq!cbmger!mhell!mhell
From: mhell@mhell.UUCP (Manfred Hell)
Newsgroups: comp.sys.amiga.tech
Subject: Scrolling a SuperBitMap
Message-ID: <00009.AA00009@mhell>
Date: 6 May 90 20:53:37 GMT
Followup-To: comp.sys.amiga.tech
Lines: 40