OSDN Git Service

p16 is being worked on a bunch by me wwww [16_ca needs huge amounts of work and I...
[proj16/16.git] / src / lib / 16_vl.h
index c3c44c7..af357b0 100755 (executable)
 // #include "src/lib/modex16/192x144_.h"\r
 // #include "src/lib/modex16/160x120.h"\r
 \r
-#ifdef __WATCOMC__\r
-#include <hw/cpu/cpu.h>\r
-#include <hw/dos/dos.h>\r
-#include <hw/vga/vga.h>\r
-#include <hw/vga/vrl.h>\r
-#include <hw/vga/vrs.h>\r
-#endif\r
-\r
 //320x240 = 20x15\r
 //192x144 = 12x9\r
 \r
 \r
 // clips for rectangles not on 4s\r
 #define LRCLIPDEF \\r
-       byte lclip[] = {0x0f, 0x0e, 0x0c, 0x08}; \\r
-       byte rclip[] = {0x00, 0x01, 0x03, 0x07};\r
+       static byte lclip[4] = {0x0f, 0x0e, 0x0c, 0x08}; \\r
+       static byte rclip[4] = {0x00, 0x01, 0x03, 0x07};\r
 \r
 #define VCLIPDEF \\r
-       byte pclip[] = {1,2,4,8};\r
+       static byte pclip[4] = {1,2,4,8};\r
 \r
 typedef union\r
 {\r
@@ -164,6 +156,9 @@ void VGAMAPMASK(byte x);
 void VGAWRITEMODE(byte x);\r
 void VGAREADMAP(byte x);\r
 \r
+#define VW_Hlin(x,z,y,c,q)     VL_Hlin(x,y,(z)-(x)+1,c,q)\r
+#define VW_Vlin(y,z,x,c,q)     VL_Vlin(x,y,(z)-(y)+1,c,q)\r
+\r
 /* -============================ Functions =============================- */\r
 /* mode switching, page, and plane functions */\r
 void VGAmodeX(sword vq, boolean cmem, global_game_variables_t *gv);\r