1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-25 19:57:36 +00:00

Bug fixes for various video code. (#80)

* VIDEO: Fix bug: vid_ready can be used uninitialized.

* VIDEO: Not all events come with a valid windowID.

* PDP11: Fix NG SET TYPE.

The sense of MATCH_CMD is reversed.

* display: Fix bug in NG display controller.

There should be a separate state for each of the eight displays.

* display: Symbolic constant for number of displays.
This commit is contained in:
Lars Brinkhoff
2022-10-23 10:42:00 -05:00
committed by GitHub
parent 65410851d5
commit 2a4e4dc10d
3 changed files with 44 additions and 31 deletions

View File

@@ -1,7 +1,7 @@
#ifdef USE_DISPLAY
/* pdp11_ng.c: NG, Knight vector display
Copyright (c) 2018, Lars Brinkhoff
Copyright (c) 2018, 2022, Lars Brinkhoff
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
@@ -232,11 +232,9 @@ ng_boot(int32 unit, DEVICE *dptr)
t_stat
ng_set_type(UNIT *uptr, int32 val, CONST char *cptr, void *desc)
{
//if ((uptr->flags & DEV_DIS) == 0)
//return SCPE_ALATT;
if (MATCH_CMD (cptr, "DAZZLE"))
if (MATCH_CMD (cptr, "DAZZLE") == 0)
ng_type = TYPE_DAZZLE;
else if (MATCH_CMD (cptr, "LOGO"))
else if (MATCH_CMD (cptr, "LOGO") == 0)
ng_type = TYPE_LOGO;
else
return SCPE_ARG;