Jump to content
IGNORED

Removers library version 1.3.1


SebRmv

Recommended Posts

Yes. That is what the screenshot shows. It is pretty strange. Once I go beyond a certain ymax the pixels start coming down on the right based on the ymax value. Then if I start increasing my ymin the amount on the right moves down with the ymin. Not only does it move down... it also shrinks and the intended line moves further down the screen. Eventually the line on the right will disappear while the intended line reaches the bottom of the screen with the top starting significantly lower than the other lines.

Link to comment
Share on other sites

Yes. That is what the screenshot shows. It is pretty strange. Once I go beyond a certain ymax the pixels start coming down on the right based on the ymax value. Then if I start increasing my ymin the amount on the right moves down with the ymin. Not only does it move down... it also shrinks and the intended line moves further down the screen. Eventually the line on the right will disappear while the intended line reaches the bottom of the screen with the top starting significantly lower than the other lines.

 

Hi. As I said, I have found the bug. I don't think I will release an update just for that fix, but here is the patch.

 

In vline.s, replace the block (after label .depth_ok)

or.l #XADD0,d0
move.l d0,A2_FLAGS
moveq #0,d0			    ;; remove
move.w SCREEN_W(a0),d0    ;; remove
move.l d0,A2_STEP
move.l d1,B_CMD
wait_blitter d0

 

by

 

or.l #XADD0,d0
move.l d0,A2_FLAGS
moveq #1,d0			    ;; fix
swap d0					    ;; fix
move.l d0,A2_STEP
move.l d1,B_CMD
wait_blitter d0

 

As every bug, this one was really stupid! Instead of doing Y++ between each inner loop, it was doing X+=W.

 

The bug happened when X wrapped around 65536, so in this case at line 204. Because X was initially equal to 240.

Indeed 240+204*320 = 65520 but 240 + 205*320 = 65840 >= 65536

And 65840 mod 65536 = 304. So an artefact occured at X = 304!

  • Like 4
Link to comment
Share on other sites

Sorry. I didn't see your last post because it was on the next page and I didn't notice the new page. Sorry about that. I'm glad the bug is resolved. I will apply the fix and give it a shot. In my testing last night I had found that 204 was the magic number. It all adds up!

 

That worked perfectly. Thanks!

Edited by Hyper_Eye
Link to comment
Share on other sites

  • 2 months later...
  • 9 months later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...