glide2x djgpp build fixes #4/7:
sst1: change Int10 handler code to build if GLIDE_DEBUG10 is defined instead of just GLIDE_DEBUG. (same thing is done in glide3x/sst1 tree.) the code is for watcom, but can actually be ported to djgpp if it is really needed some day.
This commit is contained in:
@@ -371,7 +371,7 @@ typedef struct GrGC_s
|
||||
|
||||
union hwDep_u {
|
||||
struct sst96Dep_s {
|
||||
#if (GLIDE_PLATFORM & GLIDE_OS_DOS32)
|
||||
#if (GLIDE_PLATFORM & GLIDE_OS_DOS32) && defined(GLIDE_DEBUG10)
|
||||
FxBool
|
||||
int10Called; /* Did the app call int10h? */
|
||||
void (__interrupt __far *prevInt10)();
|
||||
@@ -1022,7 +1022,7 @@ _grSst96CheckFifoData(void);
|
||||
the fifoSize element of the sst96Dep data structure must be
|
||||
accurate, we subtract after we write, instead of at the beginning
|
||||
as above. */
|
||||
#if (GLIDE_PLATFORM & GLIDE_OS_DOS32) && defined(GLIDE_DEBUG)
|
||||
#if (GLIDE_PLATFORM & GLIDE_OS_DOS32) && defined(GLIDE_DEBUG10)
|
||||
#define GR_CHECKINT10 if (gc->hwDep.sst96Dep.int10Called)_doGrErrorCallback("Glide Error:", "Application called Int 10 between grSstWinOpen and Close.\n", FXTRUE)
|
||||
#else
|
||||
#define GR_CHECKINT10
|
||||
|
||||
@@ -238,7 +238,7 @@
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#if (GLIDE_PLATFORM & GLIDE_OS_DOS32) && (GLIDE_PLATFORM & GLIDE_HW_SST96) && defined(GLIDE_DEBUG)
|
||||
#if (GLIDE_PLATFORM & GLIDE_OS_DOS32) && (GLIDE_PLATFORM & GLIDE_HW_SST96) && defined(GLIDE_DEBUG10)
|
||||
#include <dos.h>
|
||||
/* int 10h interrupt handler */
|
||||
void __interrupt __far
|
||||
@@ -771,7 +771,7 @@ GR_ENTRY(grSstWinOpen, FxBool, (
|
||||
_grReCacheFifo( 0 );
|
||||
# elif ( GLIDE_PLATFORM & GLIDE_HW_SST96 )
|
||||
gc->hwDep.sst96Dep.writesSinceFence = 0;
|
||||
#if (GLIDE_PLATFORM & GLIDE_OS_DOS32) && defined(GLIDE_DEBUG)
|
||||
#if (GLIDE_PLATFORM & GLIDE_OS_DOS32) && defined(GLIDE_DEBUG10)
|
||||
/* Set int 10h interrupt handler */
|
||||
gc->hwDep.sst96Dep.int10Called = FXFALSE;
|
||||
gc->hwDep.sst96Dep.prevInt10 = NULL;
|
||||
@@ -1039,7 +1039,7 @@ GR_ENTRY( grSstWinClose, void, ( void ) )
|
||||
GDBG_INFO(( gc->myLevel, " Command Transport Disable\n" ));
|
||||
initDisableTransport();
|
||||
|
||||
#if (GLIDE_PLATFORM & GLIDE_OS_DOS32) && (GLIDE_PLATFORM & GLIDE_HW_SST96) && defined(GLIDE_DEBUG)
|
||||
#if (GLIDE_PLATFORM & GLIDE_OS_DOS32) && (GLIDE_PLATFORM & GLIDE_HW_SST96) && defined(GLIDE_DEBUG10)
|
||||
GDBG_INFO((80, "Restoring int 10h interrupt handler (0x%x)\n", gc->hwDep.sst96Dep.prevInt10));
|
||||
_dos_setvect(0x10, NULL);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user