gvar->video.old_mode = 3;\r
}\r
\r
+void VL_print(const byte *str, nibble pagenum, global_game_variables_t *gvar){ printf("%s\n", str); }\r
+\r
#ifdef __WATCOMC__\r
void VL_ShowPage(page_t *page, boolean vsync, boolean sr){}\r
void modexClearRegion(page_t *page, int x, int y, int w, int h, byte color){}\r
void modexprint(page_t *page, sword x, sword y, word t, boolean tlsw, word color, word bgcolor, boolean vidsw, const byte *str){ printf("%s\n", str); }\r
-void VL_print(const byte *str, nibble pagenum, global_game_variables_t *gvar){ printf("%s\n", str); }\r
void modexpdump(nibble pagenum, global_game_variables_t *gvar){}\r
#endif\r
#endif\r
#include "src/lib/16_mm.h"
#include "src/lib/16_hc.h"
#include "src/lib/16_dbg.h"
-#include "src/lib/16_sd.h"
+//#include "src/lib/16_sd.h"
// #include <stdio.h>
// #include <conio.h> /* this is where Open Watcom hides the outp() etc. functions */
\r
\r
SD_StopSound();*/\r
-#ifdef __WATCOMC__\r
+\r
oldborder = gvar->video.bordercolor;\r
gvar->video.bordercolor = VL_modexPalOverscan(gvar->video.palette, 4);\r
-#endif\r
\r
if (beforesort)\r
beforesort();\r
extern char global_temp_status_text[512];\r
extern char global_temp_status_text2[512];\r
#endif\r
-#ifdef __WATCOMC__\r
+//#ifdef __WATCOMC__\r
//#define MMSMPANVID\r
#define MMSMSCANINFO\r
-#endif\r
+//#endif\r
\r
/*\r
=====================\r
void MM_ShowMemory (global_game_variables_t *gvar)\r
{\r
mmblocktype far *scan;\r
- unsigned color,temp,x,y ,q,w,width,sw;\r
+ unsigned color,temp,x,y ,q,w/*,width*/,sw;\r
sdword end,owner;\r
byte scratch[160],scratch0[4096],str[16];\r
#ifdef MMSMSCANINFO\r
\r
end = -1; w = 0; q = 0;\r
\r
- width = gvar->video.page[0].width; sw = gvar->video.page[0].sw;\r
+ //width = gvar->video.page[0].width;\r
+ sw = gvar->video.page[0].sw;\r
\r
CA_OpenDebug (gvar);\r
while (scan)\r
//0000fprintf(stdout, "[%u]\n", q);\r
\r
scan = scan->next;\r
-//#ifdef MMSMSCANINFO\r
q++;\r
-//#endif\r
+\r
//0000if(gvar->video.VL_Started && color!=6) IN_Ack(gvar);\r
}\r
\r
case sc_Space:\r
oldq = q;\r
restarted = true;\r
- modexClearRegion(&gvar->video.page[0], gvar->video.page[0].dx, gvar->video.page[0].dy, gvar->video.page[0].sw, gvar->video.page[0].sh, 8);\r
+#ifdef __WATCOMC__\r
+ if(gvar->video.VL_Started) modexClearRegion(&gvar->video.page[0], gvar->video.page[0].dx, gvar->video.page[0].dy, gvar->video.page[0].sw, gvar->video.page[0].sh, 8);\r
+#endif\r
goto reset;\r
- break;\r
+\r
case sc_Escape:\r
done = true;\r
break;\r
#include "src/lib/16_vl.h"\r
\r
static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
-#define VGASTRIDEVARIABLE vga_state.vga_stride\r
-//#define VGASTRIDEVARIABLE gvar->video.page[0].stridew\r
+//#define VGASTRIDEVARIABLE vga_state.vga_stride\r
+#define VGASTRIDEVARIABLE gvar->video.page[0].stridew\r
\r
//===========================================================================\r
\r