mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-16 05:27:43 +00:00
Ensures no border output if space is not allocated.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user