mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-02 02:49:28 +00:00
Fixed multiplier: the dot clock I've used to instantiate the CRT is the pixel clock, not the character clock.
This commit is contained in:
parent
5c68b6cc21
commit
c2253c1e0f
@ -34,11 +34,11 @@ struct CRTCBusHandler {
|
|||||||
bool is_sync = state.hsync || state.vsync;
|
bool is_sync = state.hsync || state.vsync;
|
||||||
if(state.display_enable != was_enabled_ || is_sync != was_sync_) {
|
if(state.display_enable != was_enabled_ || is_sync != was_sync_) {
|
||||||
if(was_sync_) {
|
if(was_sync_) {
|
||||||
crt_->output_sync((unsigned int)(cycles_ * 2));
|
crt_->output_sync((unsigned int)(cycles_ * 2) * 8);
|
||||||
} else {
|
} else {
|
||||||
uint8_t *colour_pointer = (uint8_t *)crt_->allocate_write_area(1);
|
uint8_t *colour_pointer = (uint8_t *)crt_->allocate_write_area(1);
|
||||||
if(colour_pointer) *colour_pointer = was_enabled_ ? 0xff : 0x00;
|
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;
|
cycles_ = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user