mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 03:32:01 +00:00
Optimises slightly for black borders.
Specifically to help to debug proper display of unused lines in the new scan target.
This commit is contained in:
parent
8f05560dd7
commit
c5d9bf2c12
@ -479,11 +479,17 @@ void Base::output_border(int cycles, uint32_t cram_dot) {
|
||||
}
|
||||
|
||||
if(cycles) {
|
||||
uint32_t *const pixel_target = reinterpret_cast<uint32_t *>(crt_.begin_data(1));
|
||||
if(pixel_target) {
|
||||
*pixel_target = border_colour;
|
||||
// If the border colour is 0, that can be communicated
|
||||
// more efficiently as an explicit blank.
|
||||
if(border_colour) {
|
||||
uint32_t *const pixel_target = reinterpret_cast<uint32_t *>(crt_.begin_data(1));
|
||||
if(pixel_target) {
|
||||
*pixel_target = border_colour;
|
||||
}
|
||||
crt_.output_level(cycles);
|
||||
} else {
|
||||
crt_.output_blank(cycles);
|
||||
}
|
||||
crt_.output_level(cycles);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user