Skip to content

Commit 155bd05

Browse files
committed
Consistently use the first palette values in chunky modes.
Now chunky1 matches chunky2 and chunky4. Signed-off-by: Jonathan 'theJPster' Pallant <[email protected]>
1 parent fadb760 commit 155bd05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vga/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ impl RenderEngine {
251251
// Get a pointer into our scan-line buffer
252252
let mut scan_line_buffer_ptr = scan_line_buffer.pixel_ptr();
253253
let black_pixel = RGBColour(VIDEO_PALETTE[0].load(Ordering::Relaxed));
254-
let white_pixel = RGBColour(VIDEO_PALETTE[15].load(Ordering::Relaxed));
254+
let white_pixel = RGBColour(VIDEO_PALETTE[1].load(Ordering::Relaxed));
255255
if is_double {
256256
// double-width mode.
257257
// sixteen RGB pixels (eight pairs) per byte

0 commit comments

Comments
 (0)