mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-14 13:35:43 +00:00
[PR #1203] [FIX] EIA-608 screen clearing fix #1998
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1203
State: closed
Merged: Yes
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
This adds a constant with the maximum number of screen rows and replaces hard-coded occurrences of it with the new constant, as hard-coding array lengths everywhere is unclear and prone to breakage. The array lengths in the screen struct were also replaced with constants where applicable.
The cleanup directly ties in with the fix in question, which is to initialize the colora nd font arrays properly using a loop rather than
memset. The commit message goes into more detail regarding this issue.GCC 9.2.0 issues a warning here: