English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 08 September 2022, 17:28   #1
AmiNju
Registered User
 
Join Date: Mar 2020
Location: Duesseldorf / Germany
Posts: 36
Problems with Scroll and DisplayLibrary

Hi there,


I've some problem with the Scroll command and DisplayLibrary. If I use Scroll with slice all looks fine. If I use Scroll with InitCopList I get color glitches.





I've attached both scripts with the image in the zip archive. What is the issue?
Attached Thumbnails
Click image for larger version

Name:	Glitches.png
Views:	239
Size:	256.7 KB
ID:	76525  
Attached Files
File Type: zip Scroll.zip (15.8 KB, 54 views)

Last edited by AmiNju; 08 September 2022 at 17:50.
AmiNju is offline  
Old 08 September 2022, 18:20   #2
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,381
I'm not sure the Scroll itself is the issue if the originally loaded portion of the bitmap is also showing glitches. A quick look at the code makes me thing you're setting up the Coplist with 6 bitplanes, but the bitmap is 5 bitplanes. So the coplist is going to display an extra plane of garbage, which I guess is what you're seeing there. Try $15 instead of $16 for the Coplist flags parameter.
Daedalus is offline  
Old 08 September 2022, 18:37   #3
AmiNju
Registered User
 
Join Date: Mar 2020
Location: Duesseldorf / Germany
Posts: 36
OMG....you're right. I've changed to 6 Bitplanes in the BitMap command and now the garbage is away...rookie mistake...
AmiNju is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scroll speed? MrGuppy Coders. Asm / Hardware 8 26 October 2020 18:04
Updating part of a CopperList's palette? (DisplayLibrary) earok Coders. Blitz Basic 3 29 August 2018 02:49
How to scroll horizontally? AChristian Coders. Asm / Hardware 13 20 August 2018 17:14
The proper way of disabling a sprite? (Using DisplayLibrary) earok Coders. Blitz Basic 6 05 June 2018 10:36
help me smooth scroll rusty71 support.WinUAE 7 21 November 2011 15:36

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:42.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08176 seconds with 14 queries