-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a lamda for VGA draw's wrapped and unwrapped portions
After incorperating "vgaonly"'s features and using a 32-bit DAC palette, the draw_linear_line_from_dac_palette's wrapped portion of the function was not updated in the same way as the unwrapped (or "whole-line") approach. This commit moves the line-writing chunk into a lambda (to avoid code-reptition), which also ensures that both the wrapped and unwrapped code chunks use the same writing logic.
- Loading branch information
Showing
1 changed file
with
42 additions
and
28 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