1
0
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:
Thomas Harte
2020-02-14 23:39:08 -05:00
parent 65e6c3a9fe
commit 9ca2d8f9f2
12 changed files with 26 additions and 27 deletions
+1 -1
View File
@@ -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();
});