-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CRTC: Make the fix for bug #2054 nicer.
- Simplify the condition (a >= b + 1) to (a > b). - Split the if/else into 2 if statements with opposite conditions. - Swap their order because the code in the second can make the condition of the first true and in that case we want to execute it (that's what the goto did). - Also get rid of the + 1 in if (ycounter + 1 >= VTOTALADJ) since it was wrong - we now nicely got rid of TWO annoying "+ 1"s. There was nothing to fix for cases where the VTOTALADJ register > 0, which is fortunately most/all of the interesting test cases. git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@45221 379a1393-f5fb-40a0-bcee-ef074d9b53f7
- Loading branch information
Showing
1 changed file
with
55 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters