mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-10 23:31:24 +00:00
Restored some semblance of output.
This commit is contained in:
parent
0aae1bd1ef
commit
52028432e1
@ -32,7 +32,8 @@ namespace {
|
|||||||
VideoOutput::VideoOutput(uint8_t *memory) :
|
VideoOutput::VideoOutput(uint8_t *memory) :
|
||||||
ram_(memory),
|
ram_(memory),
|
||||||
current_pixel_line_(-1),
|
current_pixel_line_(-1),
|
||||||
output_position_(0)
|
output_position_(0),
|
||||||
|
screen_mode_(6)
|
||||||
{
|
{
|
||||||
memset(palette_, 0xf, sizeof(palette_));
|
memset(palette_, 0xf, sizeof(palette_));
|
||||||
|
|
||||||
@ -44,7 +45,6 @@ VideoOutput::VideoOutput(uint8_t *memory) :
|
|||||||
"texValue >>= 4 - (int(icoordinate.x * 8) & 4);"
|
"texValue >>= 4 - (int(icoordinate.x * 8) & 4);"
|
||||||
"return vec3( uvec3(texValue) & uvec3(4u, 2u, 1u));"
|
"return vec3( uvec3(texValue) & uvec3(4u, 2u, 1u));"
|
||||||
"}");
|
"}");
|
||||||
|
|
||||||
// TODO: as implied below, I've introduced a clock's latency into the graphics pipeline somehow. Investigate.
|
// TODO: as implied below, I've introduced a clock's latency into the graphics pipeline somehow. Investigate.
|
||||||
crt_->set_visible_area(crt_->get_rect_for_area(first_graphics_line - 3, 256, (first_graphics_cycle+1) * crt_cycles_multiplier, 80 * crt_cycles_multiplier, 4.0f / 3.0f));
|
crt_->set_visible_area(crt_->get_rect_for_area(first_graphics_line - 3, 256, (first_graphics_cycle+1) * crt_cycles_multiplier, 80 * crt_cycles_multiplier, 4.0f / 3.0f));
|
||||||
}
|
}
|
||||||
@ -377,6 +377,8 @@ void VideoOutput::run_for_cycles(int number_of_cycles)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output_position_ %= cycles_per_frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoOutput::set_register(int address, uint8_t value)
|
void VideoOutput::set_register(int address, uint8_t value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user