From 16a5ce4631a310e0ddc66b2f3f24c8509c5c5274 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Tue, 22 Mar 2016 14:14:32 -0500 Subject: [PATCH] wwwwwwwwwwwwwwwwww --- makefile | 4 ++-- src/tesuto.c | 6 +++++- src/tesuto.h | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index d94483bc..a052bac1 100755 --- a/makefile +++ b/makefile @@ -111,12 +111,12 @@ scroll.$(OBJ): $(SRC)scroll.c # 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) diff --git a/src/tesuto.c b/src/tesuto.c index 82965a81..983110b3 100755 --- a/src/tesuto.c +++ b/src/tesuto.c @@ -11,6 +11,8 @@ #include */ +global_game_variables_t gvar; + #pragma pack(push,1) struct vrl_header { uint8_t vrl_sig[4]; // +0x00 "VRL1" @@ -109,7 +111,8 @@ int main(int argc,char **argv) { } int10_setmode(19); update_state_from_vga(); - vga_enable_256color_modex(); // VGA mode X + //vga_enable_256color_modex(); // VGA mode X + VGAmodeX(1, &gvar); /* load color palette */ fd = open(argv[2],O_RDONLY|O_BINARY); @@ -143,6 +146,7 @@ int main(int argc,char **argv) { while (getch() != 13); int10_setmode(3); + //VGAmodeX(0, &gvar); buffer = NULL; free(buffer); bufsz = 0; diff --git a/src/tesuto.h b/src/tesuto.h index 994b6c9c..056727b2 100755 --- a/src/tesuto.h +++ b/src/tesuto.h @@ -2,6 +2,7 @@ #define __TESUTO_H__ #include "src/lib/16_head.h" +#include "src/lib/modex16.h" #include #include #include -- 2.39.5