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:
18
src/dspif.c
18
src/dspif.c
@@ -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);
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user