Actually make the height 240

This commit is contained in:
Ryan Kennedy 2020-04-05 17:17:16 -05:00
parent 95f550a55e
commit 015c1c6597
2 changed files with 9 additions and 9 deletions

View file

@ -408,8 +408,8 @@ pub const MODE_320X240X256_CONFIGURATION: VgaConfiguration = VgaConfiguration {
(CrtcControllerIndex::HorizontalBlankingEnd, 0x82), (CrtcControllerIndex::HorizontalBlankingEnd, 0x82),
(CrtcControllerIndex::HorizontalSyncStart, 0x54), (CrtcControllerIndex::HorizontalSyncStart, 0x54),
(CrtcControllerIndex::HorizontalSyncEnd, 0x80), (CrtcControllerIndex::HorizontalSyncEnd, 0x80),
(CrtcControllerIndex::VeritcalTotal, 0xBF), (CrtcControllerIndex::VeritcalTotal, 0x0D),
(CrtcControllerIndex::Overflow, 0x1F), (CrtcControllerIndex::Overflow, 0x3E),
(CrtcControllerIndex::PresetRowScan, 0x00), (CrtcControllerIndex::PresetRowScan, 0x00),
(CrtcControllerIndex::MaximumScanLine, 0x41), (CrtcControllerIndex::MaximumScanLine, 0x41),
(CrtcControllerIndex::TextCursorStart, 0x00), (CrtcControllerIndex::TextCursorStart, 0x00),
@ -418,14 +418,14 @@ pub const MODE_320X240X256_CONFIGURATION: VgaConfiguration = VgaConfiguration {
(CrtcControllerIndex::StartAddressLow, 0x00), (CrtcControllerIndex::StartAddressLow, 0x00),
(CrtcControllerIndex::TextCursorLocationHigh, 0x00), (CrtcControllerIndex::TextCursorLocationHigh, 0x00),
(CrtcControllerIndex::TextCursorLocationLow, 0x00), (CrtcControllerIndex::TextCursorLocationLow, 0x00),
(CrtcControllerIndex::VerticalSyncStart, 0x9C), (CrtcControllerIndex::VerticalSyncStart, 0xEA),
(CrtcControllerIndex::VerticalSyncEnd, 0x0E), (CrtcControllerIndex::VerticalSyncEnd, 0xAC),
(CrtcControllerIndex::VerticalDisplayEnableEnd, 0x8F), (CrtcControllerIndex::VerticalDisplayEnableEnd, 0xDF),
(CrtcControllerIndex::Offset, 0x28), (CrtcControllerIndex::Offset, 0x28),
(CrtcControllerIndex::UnderlineLocation, 0x00), (CrtcControllerIndex::UnderlineLocation, 0x00),
(CrtcControllerIndex::VerticalBlankingStart, 0x96), (CrtcControllerIndex::VerticalBlankingStart, 0xE7),
(CrtcControllerIndex::VerticalBlankingEnd, 0xB9), (CrtcControllerIndex::VerticalBlankingEnd, 0x06),
(CrtcControllerIndex::ModeControl, 0xe3), (CrtcControllerIndex::ModeControl, 0xE3),
(CrtcControllerIndex::LineCompare, 0xFF), (CrtcControllerIndex::LineCompare, 0xFF),
], ],
graphics_controller_registers: &[ graphics_controller_registers: &[

View file

@ -8,7 +8,7 @@ use crate::{
use font8x8::UnicodeFonts; use font8x8::UnicodeFonts;
const WIDTH: usize = 320; const WIDTH: usize = 320;
const HEIGHT: usize = 200; const HEIGHT: usize = 240;
const SIZE: usize = (WIDTH * HEIGHT) / 4; const SIZE: usize = (WIDTH * HEIGHT) / 4;
#[derive(Debug, Clone, Copy, Default)] #[derive(Debug, Clone, Copy, Default)]