PDP11: Enforce limit on number of displays in TV device.
This commit is contained in:
parent
d1e9358a63
commit
009d748ad6
1 changed files with 5 additions and 0 deletions
|
@ -155,6 +155,9 @@ render_word (uint8 buffer, uint16 address)
|
|||
uint16 data;
|
||||
int i;
|
||||
|
||||
if (display >= TV_WINDOWS)
|
||||
return;
|
||||
|
||||
buffer &= 077;
|
||||
address /= 2;
|
||||
address += (TVCNSL[buffer] & SCROLL) << 2;
|
||||
|
@ -175,6 +178,8 @@ render_display (uint16 display)
|
|||
{
|
||||
uint8 buffer = tv_source[display];
|
||||
int i;
|
||||
if (display >= TV_WINDOWS)
|
||||
return;
|
||||
sim_debug (DBG_VID, &tv_dev, "Render display %d buffer %d\n",
|
||||
display, buffer);
|
||||
for (i = 0; i < (TV_PIXELS / 8); i += 2)
|
||||
|
|
Loading…
Add table
Reference in a new issue