# NOTE: dos86h = 16-bit huge memory model. memory model must match!
-tesuto.exe: tesuto.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ)
+tesuto.exe: tesuto.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib
# %write tmp.cmd option quiet option map=tesuto.map $(DOSLIB_LDFLAGS_DOS16H) file tesuto.obj name tesuto.exe
# %write tmp.cmd library $(DOSLIBDIR)/hw/cpu/dos86h/cpu.lib
# %write tmp.cmd library $(DOSLIBDIR)/hw/dos/dos86h/dos.lib
# @wlink @tmp.cmd
- wcl $(FLAGS) $(WCLQ) tesuto.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ)
+ wcl $(FLAGS) $(WCLQ) tesuto.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib
tesuto.$(OBJ): $(SRC)tesuto.c
wcl $(FLAGS) $(WCLQ) -c $(SRC)tesuto.c
#tesuto.exe: tesuto.$(OBJ)
#include <dos.h>\r
*/\r
\r
+global_game_variables_t gvar;\r
+\r
#pragma pack(push,1)\r
struct vrl_header {\r
uint8_t vrl_sig[4]; // +0x00 "VRL1"\r
}\r
int10_setmode(19);\r
update_state_from_vga();\r
- vga_enable_256color_modex(); // VGA mode X\r
+ //vga_enable_256color_modex(); // VGA mode X\r
+ VGAmodeX(1, &gvar);\r
\r
/* load color palette */\r
fd = open(argv[2],O_RDONLY|O_BINARY);\r
while (getch() != 13);\r
\r
int10_setmode(3);\r
+ //VGAmodeX(0, &gvar);\r
buffer = NULL;\r
free(buffer);\r
bufsz = 0;\r