mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-26 19:17:52 +00:00
Tried to be less lazy with lambda captures.
This is primarily defensive.
This commit is contained in:
@@ -485,7 +485,7 @@ void Video::write(int address, uint16_t value) {
|
||||
// Sync mode and pixel mode.
|
||||
case 0x05:
|
||||
// Writes to sync mode have a one-cycle delay in effect.
|
||||
deferrer_.defer(HalfCycles(2), [=] {
|
||||
deferrer_.defer(HalfCycles(2), [this, value] {
|
||||
sync_mode_ = value;
|
||||
update_output_mode();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user