1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-10-31 13:07:14 +00:00

Set strobe to false by default

Otherwise we could get garbage values, and that was flagging some tests
as failed at random times
This commit is contained in:
Peter Evans 2018-01-17 15:16:25 -06:00
parent c8dbf1c84c
commit c0ce4ec2f1

View File

@ -42,6 +42,10 @@ apple2_create(int width, int height)
return NULL; return NULL;
} }
// By default, we have no strobe set; it should only be set when a
// key is pressed
mach->strobe = false;
// Forward set these to NULL in case we fail to build the machine // Forward set these to NULL in case we fail to build the machine
// properly; that way, we won't try to free garbage data // properly; that way, we won't try to free garbage data
mach->rom = NULL; mach->rom = NULL;