mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-26 08:29:33 +00:00
Ensures no border output if space is not allocated.
This commit is contained in:
parent
3eab1f8f7c
commit
15b1176841
@ -471,14 +471,18 @@ void Base::output_border(int cycles, uint32_t cram_dot) {
|
|||||||
|
|
||||||
if(cram_dot) {
|
if(cram_dot) {
|
||||||
uint32_t *const pixel_target = reinterpret_cast<uint32_t *>(crt_.begin_data(1));
|
uint32_t *const pixel_target = reinterpret_cast<uint32_t *>(crt_.begin_data(1));
|
||||||
*pixel_target = border_colour | cram_dot;
|
if(pixel_target) {
|
||||||
|
*pixel_target = border_colour | cram_dot;
|
||||||
|
}
|
||||||
crt_.output_level(4);
|
crt_.output_level(4);
|
||||||
cycles -= 4;
|
cycles -= 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(cycles) {
|
if(cycles) {
|
||||||
uint32_t *const pixel_target = reinterpret_cast<uint32_t *>(crt_.begin_data(1));
|
uint32_t *const pixel_target = reinterpret_cast<uint32_t *>(crt_.begin_data(1));
|
||||||
*pixel_target = border_colour;
|
if(pixel_target) {
|
||||||
|
*pixel_target = border_colour;
|
||||||
|
}
|
||||||
crt_.output_level(cycles);
|
crt_.output_level(cycles);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user