Fix invalid VGA palette reset (#605)

This commit is contained in:
Vincent Ollivier 2024-03-22 15:50:52 +01:00 committed by GitHub
parent 9143355cc4
commit ed945d585d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ impl Perform for Writer {
self.set_palette(i, r, g, b);
}
}
Some('R') => {
Some('R') if s.len() == 1 => {
let palette = Palette::default();
for (i, (r, g, b)) in palette.colors.iter().enumerate() {
self.set_palette(i, *r, *g, *b);