mirror of
https://github.com/Interlisp/maiko.git
synced 2026-04-25 20:11:36 +00:00
Remove SwitchDisplay and colordsp. (#317)
This commit is contained in:
@@ -4,6 +4,5 @@
|
|||||||
void make_dsp_instance(DspInterface dsp, char *lispbitmap, int width_hint, int height_hint, int depth_hint);
|
void make_dsp_instance(DspInterface dsp, char *lispbitmap, int width_hint, int height_hint, int depth_hint);
|
||||||
unsigned long GenericReturnT(void);
|
unsigned long GenericReturnT(void);
|
||||||
void GenericPanic(DspInterface dsp);
|
void GenericPanic(DspInterface dsp);
|
||||||
LispPTR SwitchDisplay(LispPTR display);
|
|
||||||
void describedsp(DspInterface dsp);
|
void describedsp(DspInterface dsp);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
18
src/dspif.c
18
src/dspif.c
@@ -20,10 +20,9 @@
|
|||||||
#include "dspifdefs.h"
|
#include "dspifdefs.h"
|
||||||
#include "xinitdefs.h"
|
#include "xinitdefs.h"
|
||||||
|
|
||||||
DspInterfaceRec _curdsp, _coldsp;
|
DspInterfaceRec _curdsp;
|
||||||
|
|
||||||
DspInterface currentdsp = &_curdsp;
|
DspInterface currentdsp = &_curdsp;
|
||||||
DspInterface colordsp = &_coldsp;
|
|
||||||
|
|
||||||
#ifdef XWINDOW
|
#ifdef XWINDOW
|
||||||
extern int LispDisplayRequestedWidth;
|
extern int LispDisplayRequestedWidth;
|
||||||
@@ -95,26 +94,11 @@ void GenericPanic(DspInterface dsp) {
|
|||||||
exit(0);
|
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) {
|
void describedsp(DspInterface dsp) {
|
||||||
if (dsp == 0) {
|
if (dsp == 0) {
|
||||||
printf("describedsp: Not a dsp!\n");
|
printf("describedsp: Not a dsp!\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (dsp == &_curdsp)
|
|
||||||
printf("dsp is B/W display\n");
|
|
||||||
else
|
|
||||||
printf("dsp is COLOR display\n");
|
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf("width= %d\n", dsp->Display.width);
|
printf("width= %d\n", dsp->Display.width);
|
||||||
|
|||||||
@@ -69,7 +69,6 @@
|
|||||||
DLword *DisplayRegion68k_end_addr;
|
DLword *DisplayRegion68k_end_addr;
|
||||||
extern DspInterface currentdsp;
|
extern DspInterface currentdsp;
|
||||||
int DisplayWidth8;
|
int DisplayWidth8;
|
||||||
extern DspInterfaceRec _curdsp, _coldsp;
|
|
||||||
#endif /* DOS */
|
#endif /* DOS */
|
||||||
|
|
||||||
/* from /usr/include/sun/fbio.h some machines don't have following def. */
|
/* from /usr/include/sun/fbio.h some machines don't have following def. */
|
||||||
|
|||||||
Reference in New Issue
Block a user