You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the issue appears to be that someone wrote the wrong number when converting from binary to decimal on line 158 in src/core/draw.c orientation |= 0b100 became orientation |= 2 instead of orientation |= 4
It's a simple fix, but I've never contributed to a git repository before so I'm not sure what to do. Do I just make a pull request with that single line changed?
So that's the issue! To contribute a fix, make a fork of the repo, change the line (and make a build so you can confirm the change fixes the issue), make a commit (mention "fixes #2016" or something), and then make a pull request where you also mention this issue #2016. That should do the trick!
Yes someone whip up a PR please and I'm happy to approve.
Was this decimal conversion done for some very old compilers? If so, we really probably should have a file full of just binary constants (or at least the small ones) to cover this instead of doing manual conversions.
Activity
jgengelhardt commentedon Oct 4, 2022
I've tested this. Flip is fine; rotate 1 and 3 don't work, while 2 does.
borbware commentedon Oct 4, 2022
I noticed the same recently. It's also broken on map()'s remap functions:
0.90:

1.0:

borbware commentedon Nov 8, 2022
@nesbox any ideas what might have broken this?
Gabby-Paolucci commentedon Jan 1, 2023
Ah, this is the problem! It will be great to have this bug fixed.
Podepi commentedon Jan 3, 2023
So the issue appears to be that someone wrote the wrong number when converting from binary to decimal on line 158 in
src/core/draw.corientation |= 0b100becameorientation |= 2instead oforientation |= 4It's a simple fix, but I've never contributed to a git repository before so I'm not sure what to do. Do I just make a pull request with that single line changed?
borbware commentedon Jan 3, 2023
So that's the issue! To contribute a fix, make a fork of the repo, change the line (and make a build so you can confirm the change fixes the issue), make a commit (mention "fixes #2016" or something), and then make a pull request where you also mention this issue #2016. That should do the trick!
Fixes nesbox#2016
joshgoebel commentedon Jan 3, 2023
Yes someone whip up a PR please and I'm happy to approve.
Was this decimal conversion done for some very old compilers? If so, we really probably should have a file full of just binary constants (or at least the small ones) to cover this instead of doing manual conversions.
Merge pull request #2070 from Podepi/main