mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2024-12-21 05:30:20 +00:00
Fix bug with DHGR bank switching: we were emitting the last writes to
a bank after switching to the new one, which caused video corruption.
This commit is contained in:
parent
0c44fe634f
commit
721eb3112d
@ -96,6 +96,9 @@ class Movie:
|
||||
if self.max_bytes_out and self.stream_pos >= self.max_bytes_out:
|
||||
yield from self.done()
|
||||
return
|
||||
|
||||
yield from self._emit_bytes(op)
|
||||
|
||||
# Keep track of where we are in TCP client socket buffer
|
||||
socket_pos = self.stream_pos % 2048
|
||||
if socket_pos >= 2044:
|
||||
@ -108,8 +111,6 @@ class Movie:
|
||||
yield from self._emit_bytes(opcodes.Ack(self.aux_memory_bank))
|
||||
assert self.stream_pos % 2048 == 0, self.stream_pos % 2048
|
||||
|
||||
yield from self._emit_bytes(op)
|
||||
|
||||
yield from self.done()
|
||||
|
||||
def done(self) -> Iterator[int]:
|
||||
|
Loading…
Reference in New Issue
Block a user