1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-26 20:02:37 +00:00

Remove SwitchDisplay and colordsp. (#317)

This commit is contained in:
Bruce Mitchener
2021-01-30 10:56:07 +07:00
committed by GitHub
parent 0efeedd6d3
commit 40aa5d392d
3 changed files with 1 additions and 19 deletions

View File

@@ -20,10 +20,9 @@
#include "dspifdefs.h"
#include "xinitdefs.h"
DspInterfaceRec _curdsp, _coldsp;
DspInterfaceRec _curdsp;
DspInterface currentdsp = &_curdsp;
DspInterface colordsp = &_coldsp;
#ifdef XWINDOW
extern int LispDisplayRequestedWidth;
@@ -95,26 +94,11 @@ void GenericPanic(DspInterface dsp) {
exit(0);
}
LispPTR SwitchDisplay(LispPTR display) {
DspInterface tmp; /* Switch-a-roo! */
TPRINT(("Enter SwitchDisplay\n"));
tmp = currentdsp;
currentdsp = colordsp;
colordsp = tmp;
TPRINT(("Exit SwitchDisplay\n"));
return (display);
}
void describedsp(DspInterface dsp) {
if (dsp == 0) {
printf("describedsp: Not a dsp!\n");
return;
}
if (dsp == &_curdsp)
printf("dsp is B/W display\n");
else
printf("dsp is COLOR display\n");
printf("\n");
printf("width= %d\n", dsp->Display.width);

View File

@@ -69,7 +69,6 @@
DLword *DisplayRegion68k_end_addr;
extern DspInterface currentdsp;
int DisplayWidth8;
extern DspInterfaceRec _curdsp, _coldsp;
#endif /* DOS */
/* from /usr/include/sun/fbio.h some machines don't have following def. */