From c2253c1e0fa4a6d830d47de834236607096bcf2a Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 31 Jul 2017 22:17:46 -0400 Subject: [PATCH] Fixed multiplier: the dot clock I've used to instantiate the CRT is the pixel clock, not the character clock. --- Machines/AmstradCPC/AmstradCPC.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Machines/AmstradCPC/AmstradCPC.hpp b/Machines/AmstradCPC/AmstradCPC.hpp index ca650b367..054ac211c 100644 --- a/Machines/AmstradCPC/AmstradCPC.hpp +++ b/Machines/AmstradCPC/AmstradCPC.hpp @@ -34,11 +34,11 @@ struct CRTCBusHandler { bool is_sync = state.hsync || state.vsync; if(state.display_enable != was_enabled_ || is_sync != was_sync_) { if(was_sync_) { - crt_->output_sync((unsigned int)(cycles_ * 2)); + crt_->output_sync((unsigned int)(cycles_ * 2) * 8); } else { uint8_t *colour_pointer = (uint8_t *)crt_->allocate_write_area(1); if(colour_pointer) *colour_pointer = was_enabled_ ? 0xff : 0x00; - crt_->output_level((unsigned int)(cycles_ * 2)); + crt_->output_level((unsigned int)(cycles_ * 2) * 8); } cycles_ = 0;